• 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: %f and decimal places
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %f and decimal places


  • Subject: Re: %f and decimal places
  • From: Clark Cox <email@hidden>
  • Date: Fri, 25 Jul 2003 07:44:29 -0400

On Friday, July 25, 2003, at 04:27, Francisco Tolmasky wrote:

How do you truncate when using formatted strings and %f?

Currently I have 10.0, and it shows 10.00000. How do I tell it to just show the first decimal place?


Use "%.1f"
_______________________________________________
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: 
 >%f and decimal places (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: plist Problem
  • Previous by thread: %f and decimal places
  • Next by thread: Re: working with font manager
  • Index(es):
    • Date
    • Thread