06-29-2012, 09:06 PM
frisian Wrote:Both give a different figure. It took me some days before I figured out that the calculations in the compiled version where correct, converting the float into a integer screwed things up.This bug is marked for correction. INT will behave as Sinclair BASIC, since CAST(Integer, <float value>) will also perform the truncation. So we'll have both choices. Better comment this issue in the bug thread (your first post).
1. first add .5 (round off the number)
2. INT must work like in ZX Basic (3.9 gives 3, -3.9 must give -4)
Frisian.