On 12/9/05, Yokota Satoshi <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using NumberFormatter class in ActionScript 2.0 classes. > > ------------------------------------------------------- > var numFormat:NumberFormatter = new NumberFormatter(); > numFormat.precision = 0; > numFormat.rounding = "down"; > ------------------------------------------------------- > <Results> > 1.5 -> 1 > -1.5 -> -2 (funny?) > > I know that Oracle and Excel works following things. > 1.5 -> 1 > -1.5 -> -1 > > Is that bug or not? Any idea? >
No, that's not a bug. -2 is the next smallest number to -1.5. I'd be curious is your Oracle/Excel experiments are truncating the fraction and simply looking at the "1" and "-1". Regards, Dave. ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

