Thread: foo^(n/m)
View Single Post
  #10  
Old 10-17-2005, 04:19 PM
Fox1545 Fox1545 is offline
Registered User
Join Date: Jul 2004
Posts: 78
Fox1545 is on a distinguished road
Quote:
Originally Posted by Stefan
The exponent is specified as one number, not divider and divisor (not sure about the english names for those). While -8 ^1/3 is possible to calculate, -8 ^ 0.333333333 is not, since the precision of floating point numbers is limited and 0.333333333 is not exactly the same like 1/3.
Ruby allows -8 ** 0.333333333 and returns -1.99999999861371
Reply With Quote