Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDecimalSeparator localization II




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: NSDecimalSeparator localization II (From: mark <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.