Re: Floats in strings
Re: Floats in strings
- Subject: Re: Floats in strings
- From: Andrew James <email@hidden>
- Date: Wed, 25 Jul 2007 23:05:02 +0930
Hi,
That is PERFECT thank you so much.
PS. I used %.1g so there was no hanging x.0 for anyone that reads
this thread
On 25/07/2007, at 10:49 PM, Alain Schartz wrote:
Andrew,
You can use the %.1f format specifier which gives you one decimal
place. To display only the integer part, use %.0f
Alain
On Wednesday, July 25, 2007, at 02:05PM, "Andrew James"
<email@hidden> wrote:
I have this small visual problem, i currently have in my menu a float
which is presented as 8.5000000 etc,
now i know that it will always be x.0 or x.5 for example
so is there a way i can make it show x or x.5 depending on the float
value, instead of the massive x.500000000
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden