Running the integer function on any floating-point value will get you the rounded value. But be careful, the precision is only 16 decimal places.
put integer(2.2) -- 2 put integer(2.5) -- 3 put integer(2.4999999999999999) -- 3 -----Original Message----- From: Kevin McCarthy [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 4:51 PM To: [EMAIL PROTECTED] Subject: <lingo-l> Is there a Math.round in Lingo ? Hi, I need to know, is there a way of saying math.round in lingo, I am trying to slide a camera around. Or perhaps there may be a way of actually sliding a camera from an old position to a new position in director that I'm not aware of..?? -KEV- [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!] [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!]
