i used to always want to know this
i always asked in the forums and searched the forums and i always got a realy confusing or un-understandable responce
well heres a simple way when you look at it from the big picture
hi#=2.65
hi=hi#
hii#=hi#-hi
if hii#>0.5
inc hi, 1
endif
print hi
wait key
the command hi# accepts decimals
the command hi wont accept decimals, so if you say hi=hi# then it will munch away the decimals
then you do hi#-hi which simple finds out the missing decimals
and then you do a simple if, if the number is greater than 0.5 than you increase hi by one
and then print hi
if you wanted hi to become a # then simple do
hi#=hi
you may want to do it if its bigger than 0.499
Creators of Outscape
http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8