Im trying to get the output of to round up if the number is like over 0.01 but due to float (my arc villan) its rounding up a number which should not to.
for example should be
7 to 2
8 to 2
9 to 3
but its
7 to 2
8 to 3
9 to 3
do
cls
text 50,30,str$(Number#)
text 80,50,str$(Number#/4)
text 50,50,str$(rounding(Number#/4))
Number#=8
if MOUSECLICK() = 1 then Number# = 7
if MOUSECLICK() = 2 then Number# = 9
loop
function rounding(originalnumber#)
intnumber=int(originalnumber#)
finalnumber#=intnumber + (originalnumber#+intnumber > 0.0)
endfunction finalnumber#