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

Re: Converting a string to a number


  • Subject: Re: Converting a string to a number
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 23 Mar 2004 17:09:52 -0700

On Mar 23, 2004, at 4:10 PM, Joe Lertola wrote:

If I have a NSString that contains a number how can I convert it into a real number. For example if I have a NSString = "123.456 is my number", how can I get the value 123.456 into a float?

No offense, but I must call "RTFM" on this one: <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSString.html#//apple_ref/doc/uid/20000154/ doubleValue>

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Converting a string to a number (From: Joe Lertola <email@hidden>)

  • Prev by Date: Re: fileHandle writeData not reporting error nor writing data
  • Next by Date: List of User Accounts
  • Previous by thread: Converting a string to a number
  • Next by thread: Re: Converting a string to a number
  • Index(es):
    • Date
    • Thread