FROM : Dave DeLong
DATE : Thu Apr 07 23:22:00 2005
You could take a look at the NSNumberFormatter class. You could use
a format string to the effect of @"#,###.00".
HTH,
Dave
On Apr 7, 2005, at 2:52 PM, Brett O'Donnell wrote:
> (Sorry if this is a newbie question)
>
> What is the easiest way to round a double number to a certain
> decimal place?
>
> The line is currently
>
> [textRho setDoubleValue:rho];
>
> Thanks in advance for any help you can give.
>
> Thanks,
> Brett O'Donnell
DATE : Thu Apr 07 23:22:00 2005
You could take a look at the NSNumberFormatter class. You could use
a format string to the effect of @"#,###.00".
HTH,
Dave
On Apr 7, 2005, at 2:52 PM, Brett O'Donnell wrote:
> (Sorry if this is a newbie question)
>
> What is the easiest way to round a double number to a certain
> decimal place?
>
> The line is currently
>
> [textRho setDoubleValue:rho];
>
> Thanks in advance for any help you can give.
>
> Thanks,
> Brett O'Donnell
| Related mails | Author | Date |
|---|---|---|
| Brett O'Donnell | Apr 7, 22:52 | |
| Dave DeLong | Apr 7, 23:22 | |
| Finlay Dobbie | Apr 8, 00:34 |






Cocoa mail archive

