S
Sam Kong
Hi!
First, some codes.
-----------
def calc(n)
(2 ** n) * (5 ** 0.5)
end
puts calc(10000)
=>warning: Bignum out of Float range
-----------
I understand what the problem is.
If I want to get the result, how can I work around the barrier?
Thanks.
Sam
First, some codes.
-----------
def calc(n)
(2 ** n) * (5 ** 0.5)
end
puts calc(10000)
=>warning: Bignum out of Float range
-----------
I understand what the problem is.
If I want to get the result, how can I work around the barrier?
Thanks.
Sam