I rewrote it slightly to suit my needs (as i always want 2 decimals)
But the roblem is (as i suspected) that inting a number returns the int part of the number as it is, it doesnt round, i.e int(567.8) returns 567 not 568.
Only thing i can think of now is to typecast to string get the last digit right$(string,1) check if it is a 5,6,7,8 or 9 and if it is inc number and then int... guess i should have written that in my code instead and i had been finished by now.. of to try it
Function round(number#)
number# = number# * 100
number# = int(number#)
number# = number# / 100
endfunction number#