• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDecimalSeparator localization II
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: NSDecimalSeparator localization II
  • Next by Date: Re: NSDecimalSeparator localization II
  • Previous by thread: Re: NSDecimalSeparator localization II
  • Next by thread: Re: NSDecimalSeparator localization II
  • Index(es):
    • Date
    • Thread