I'd never noticed that before, but you are right!
I'm sure it didn't work that way previously. But I just checked V1.08 and the behaviour is the same. I will have to add floor() to my calculations.
Anyone know if DBP behaves the same way?
// set window properties
SetWindowTitle( "Integer Rounding" )
SetWindowSize( 1440, 900, 0 )
SetVirtualResolution(1440,900)
txt = CreateText("Integer Rounding")
setTextSize(txt,30)
SetTextPosition(txt, 10, 10)
do
print("")
print("")
for n = 0 to 10
x# = 10.0 + (n * 1.1)
result = x# / 10
print(str(x#,1) + " : " + str(result))
next n
sync()
loop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt