• 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: Formatting an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting an NSString


  • Subject: Re: Formatting an NSString
  • From: "Erik M. Buck" <email@hidden>
  • Date: Sat, 1 Sep 2001 11:48:33 -0500

Look at the formatting options of printf and sprintf. There are field width
specifies.

To print a floating point number with 2 decimal places right aligned always
using 20 characters:

printf("% 20.2f", someNumber);

NSString has printf style format options.

----- Original Message -----

References: 
 >Formatting an NSString (From: Patrick Lyonnais <email@hidden>)

  • Prev by Date: Dragging flipped image
  • Next by Date: Re: Bug in pathContentOfSymbolicLinkAtPath?
  • Previous by thread: Formatting an NSString
  • Next by thread: Dragging flipped image
  • Index(es):
    • Date
    • Thread