Hmm, I seem to remember adding (or subtracting) .5 and using integer to round it off, I remember correctly....

Floor:
integer(4.25 - .5) = 4
integer(4.75 - .5) = 4

Ceil:
integer(4.25 + .5) = 5
integer(4.75 + .5) = 5

~Mathew

Mendelsohn, Michael wrote:
Hi all...

I want to automatically convert a float to the next highest integer.
Flash has the Math.ceil() method, so what's the most efficient way to do
this in Lingo?

I appreciate any responses, and have a superb day.

Thanks,
Michael M.



[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