Thread: foo^(n/m)
View Single Post
  #15  
Old 10-18-2005, 08:20 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
a^1/b when a is negative and b is odd, mulitply a by -1, do the arithmetic, then multiply the answer by -1

Everyone and their mother knows that fractions are represented by limited precision floating point values in computers. The only question is whether or not to actually support this, granted it really shouldn't be that big of a deal to add.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial

Last edited by Dach; 10-18-2005 at 08:48 PM..
Reply With Quote