• 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: string to float
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string to float


  • Subject: Re: string to float
  • From: Devon Ferns <email@hidden>
  • Date: Fri, 04 Jul 2008 11:46:09 -0400

What about replacing the , with a . and using NSString's floatValue function?

Devon

Robert Cerny wrote:
Hi folks,
I made a parser, which returns values like 10,45. It means, it has comma as a decimal point delimiter, which is correct in my language. I was trying to find a way to convert to NSNumber. Is it correct the the right way is to use NSScanner?


Robert
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >string to float (From: Robert Cerny <email@hidden>)

  • Prev by Date: Re: string to float
  • Next by Date: Re: Style Question (Robert Claeson)
  • Previous by thread: Re: string to float
  • Next by thread: Re: string to float
  • Index(es):
    • Date
    • Thread