• 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
NSString to int (or double) conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString to int (or double) conversion


  • Subject: NSString to int (or double) conversion
  • From: Cyprien <email@hidden>
  • Date: Tue, 8 Jul 2003 15:29:45 +0200

I'm sorry to ask the same kind of question again, but now I'm trying to convert an NSString (like "512") into an int. (or a double)
And I've search the cocoa.mamasam.com, and found nothing.

Cyprien

Le lundi, 7 jul 2003, ` 16:11 Europe/Paris, Jonathan E. Jackel a icrit :

double x = 1.23456;
NSString *aString = [NSString stringWithFormat:@"%f", x];

This question has been asked at least a dozen times. In the future, check
the archives first at cocoa.mamasam.com.

Jonathan

-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Cyprien
Sent: Monday, July 07, 2003 9:39 AM
To: email@hidden
Subject: Double to NSString conversion


How can I convert a double to a NSString in order to use it with
setStringValue:(NSString *)aString ?

Cyprien
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSString to int (or double) conversion
      • From: "Steven M.Palm" <email@hidden>
    • Re: NSString to int (or double) conversion
      • From: Stéphane Sudre <email@hidden>
    • Re: NSString to int (or double) conversion
      • From: Robert Cerny <email@hidden>
    • Re: NSString to int (or double) conversion
      • From: Jeff Harrell <email@hidden>
References: 
 >RE: Double to NSString conversion (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: Re: NSOpenPanel limited to the Home folder ?
  • Next by Date: Re: non-blocking file writes
  • Previous by thread: RE: Double to NSString conversion
  • Next by thread: Re: NSString to int (or double) conversion
  • Index(es):
    • Date
    • Thread