Problem with power...
BlitzMax Forums/BlitzMax Programming/Problem with power... 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 :)
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 :)
Or you can just do
return Long(out+.5)
return Long(out+.5)