• 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
API to convert string to number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

API to convert string to number?


  • Subject: API to convert string to number?
  • From: "E. Wing" <email@hidden>
  • Date: Tue, 27 Feb 2007 13:40:29 -0800

I was wondering if there was a good Cocoa API to convert a string to a
float or double. I have been using strtod/strtof, but I noticed that
it doesn't handle commas and presumably other localization issues.
I've been avoiding scanf for safety issues.

Thanks,
Eric
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: API to convert string to number?
      • From: "Shawn Erickson" <email@hidden>
    • Re: API to convert string to number?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Bindings/NSUserDefaultsController issue
  • Next by Date: Re: API to convert string to number?
  • Previous by thread: Re: iChat-like list view sample?
  • Next by thread: Re: API to convert string to number?
  • Index(es):
    • Date
    • Thread