Re: %f and decimal places
Re: %f and decimal places
- Subject: Re: %f and decimal places
- From: Clark Cox <email@hidden>
- Date: Fri, 25 Jul 2003 07:44:29 -0400
On Friday, July 25, 2003, at 04:27, Francisco Tolmasky wrote:
How do you truncate when using formatted strings and %f?
Currently I have 10.0, and it shows 10.00000. How do I tell it to
just show the first decimal place?
Use "%.1f"
_______________________________________________
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.