Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
not sure what it is bug/feature/me
#3
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.

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.
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).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)