Re: Cutting strings from right to left
Re: Cutting strings from right to left
- Subject: Re: Cutting strings from right to left
- From: Scott Ellsworth <email@hidden>
- Date: Fri, 9 Dec 2005 11:23:55 -0800
On Dec 9, 2005, at 11:17 AM, Sanri Parov wrote:
Hi everybody,
I've got the goal to transform these strings
-8.230000
120.000000
into
-8.23
120.00
by mean of cutting 4 decimal zeroes.
Is there a way to do this easily ?
I might look at NSString's stringWithFormat. It takes printf-style
tags, and I believe it includes the field size ones.
Scott
---
email@hidden
Java, Cocoa, Tapestry, and Database Consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden