on Floor aFloat
  vInt = integer(aFloat - 0.5)
  return vInt
end Floor

on Ceil aFloat
  vInt = integer(aFloat + 0.5)
  return vInt
end Floor


Regards,
Pranav Negandhi


<snip>
Silly question; i need to round a number to the next integer... I'd use
ceil(), but since lingo seems to lack actual rounding functions...
<snip>



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to