Re: Rounding very small numbers.

2008-09-11 Thread Keary Suska
9/11/08 2:11 AM, also sprach [EMAIL PROTECTED]: > I attempted to do that with the following code: > > NSDecimalNumberHandler* roundingBehavior = [NSDecimalNumberHandler > decimalNumberHandlerWithRoundingMode:NSRoundPlain scale:5]; > > NSDecimalNumber *roundFloat = NSDecimalNumber alloc] >

Re: Rounding very small numbers.

2008-09-11 Thread Georg Seifert
cant you just multiply with 1, round it and divide 1? g Am 11.09.2008 um 10:11 schrieb Ryan Ragona: Hey all, I've been scouring the archives, but coming up without any solution that seems to work in my application. Here is the issue: I have some tiny numbers, like -0.00116916,

Rounding very small numbers.

2008-09-11 Thread Ryan Ragona
Hey all, I've been scouring the archives, but coming up without any solution that seems to work in my application. Here is the issue: I have some tiny numbers, like -0.00116916, for example, that I want rounded to the 5th decimal place or so. -0.0 is plenty precise for my purposes. I att