-1.13686837721616e-13 is as close to zero as you get matey.... 13 places after the decimal...
On 07/03/06, Boon Chew <[EMAIL PROTECTED]> wrote: > > > How do you usually deal with the loss in precision (a bit oxymoron since > floating point can't be exactly represented) when converting a floating > point string to a number? > > var s:String = "952.86"; > var i:Number = parseFloat(s); > trace(i); > trace(i - 952.86); // Not zero! > > > - boon > > > > > --------------------------------- > Yahoo! Mail > Bring photos to life! New PhotoMail makes sharing a breeze. > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype: ubermutt
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com