**

big ** exponent รข numeric
Instance Public methods

Raises big to the exponent power (which may be an integer, float, or anything that will coerce to a number). The result may be a Fixnum, Bignum, or Float

123456789 ** 2      #=> 15241578750190521
123456789 ** 1.2    #=> 5126464716.09932
123456789 ** -2     #=> 6.5610001194102e-17

power!

doc_ruby_on_rails
2015-03-31 10:31:54
Comments
Leave a Comment

Please login to continue.