SRL Archive - Bugs

Pow


Bad Boy JH

2010-06-01 06:50:28

Pow is not working, which is creating havock with FindXP, which is irritating.
I think its not returning a Extended, but a Integer. Also can anyone tell me why Int() Returns an EXTENDED

nielsie95

2010-06-01 06:58:25

Pow seems to work? If you want the integer version of Int() use Floor().

Bad Boy JH

2010-06-01 07:13:58

Power := Pow(2.0, i / 7);
Writeln(FloatToStr(Power));
It returns 1 for me….

nielsie95

2010-06-01 07:27:02

Try dividing by 7.0 (otherwise it'll be an integer division).

Bad Boy JH

2010-06-01 09:58:17

Thanks that worked…