I was wondering how to get the inverse of power in Ruby?
2 ** 4 # => 16
and then I would like to get the inverse of it, and I'm not sure which operator to use
16 ?? 2 # => 4
I was wondering how to get the inverse of power in Ruby?
2 ** 4 # => 16
and then I would like to get the inverse of it, and I'm not sure which operator to use
16 ?? 2 # => 4