Problem with power...

BlitzMax Forums/BlitzMax Programming/Problem with power...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

4^3 is a float operation that did not quite make 64.
try it out with return(a^b)*10000. the 63.9999 float was casted to 63 which is not mathematically correct but apparently is the standard way of doing things.

Don't know why the other way produces a 64 but there is only a small difference b/w 64.000001 and 63.9999 :)