Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jeremy1026

macrumors 68020
Original poster
Nov 3, 2007
2,215
1,029
Is it possible to display a float variable only out to the 2nd decimal place (hundredths place)?
 

Jeremy1026

macrumors 68020
Original poster
Nov 3, 2007
2,215
1,029
Thanks for your help.

Incase anyone else finds this in a search, the way to do it is to use %.2f in the stringWithFormat: method.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.