• 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: Simple Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Question


  • Subject: Re: Simple Question
  • From: Don Murta <email@hidden>
  • Date: Sun, 11 Nov 2001 21:43:16 -0700

On Sunday, November 11, 2001, at 09:26 PM, Peer Allan wrote:

Hello all,

Just another simple question that I can't find any information about.

I have a text field that has to display a combination of NSString and a
calculated float value. I can't find any details on how to convert the
float in a NSString to display it together in the text field.

Try
NSString *yourString = [NSString stringWithFormat:@"%f", yourFloat];

btw, its in NSString documentation, under the text "Creating and Converting String Objects"

Hope this helps
-don-


References: 
 >Simple Question (From: Peer Allan <email@hidden>)

  • Prev by Date: Re: Suggestion: A Getting Started FAQ
  • Next by Date: Re: Simple Question
  • Previous by thread: Re: Simple Question
  • Next by thread: Re: Simple Question
  • Index(es):
    • Date
    • Thread