What's the reverse of Math Power (**) in Ruby?

Viewed 27336

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
3 Answers
Related