var multitude:Number = tN -(tN%8) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jiri Heitlager Sent: donderdag 18 december 2008 14:55 To: Flash Coders List Subject: [Flashcoders] round number to closet value of 8
I am trying to figure out the fastest way to get the closest multitude of 8 from a random Number and I am really not a math person. var tN:Number = 32.3 //32 var tN:Number = 32.00 //32 var tN:Number = 44.9 //48 var tN:Number = 44.4 //40 Much appreciated if someone could help me out Jiri _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.19/1855 - Release Date: 18-12-2008 10:16 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

