Re: double: Decimal places
Re: double: Decimal places
- Subject: Re: double: Decimal places
- From: Steve Bird <email@hidden>
- Date: Tue, 15 Jul 2003 07:51:21 -0400
On Tuesday, July 15, 2003, at 07:37 AM, Cyprien wrote:
Hi
I'm trying to have at least 9 decimal places with the numbers I
manipulate. I use double, which garanties normally at least 15 decimal
places. But when I do NSLog(@"%f",myDouble); it return always 6
decimal places. Never less.
try
NSLog(@"%0.9f",myDouble);
since you did not specify decimal places ("%f") it uses the default 6.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.