Re: NSDecimalSeparator localization II
Re: NSDecimalSeparator localization II
- Subject: Re: NSDecimalSeparator localization II
- From: Ricky Sharp <email@hidden>
- Date: Thu, 30 Dec 2004 18:36:43 -0600
On Dec 30, 2004, at 6:22 PM, mark wrote:
It *almost* works. I'll have to play around with it, but the input
"100000.50" returns "1e+06" (i.e., converts out of float). Its sooo
close,
though…
Hmm. You could try to separate the number into two portions with
componentsSeparatedByString (using the proper decimal as the
separator). Then, run the round-trip algorithm on the decimal portion.
Finally, glue it back to the original whole number value.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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