Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-07-2009, 07:04 PM   #2 (permalink)
tkilmer
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default

A couple things. My personal preference is to always use a double. I know it is double the space, but it is far more precise. Next, you do not have to use the [NSString stringWithFormat] inside NSLog. You can do this:

Code:
NSLog("Percent = %.2f", percent);
Last thing, how do you assign the value of percent. It sounds like the conversion is not properly done. Post your code for how percent is assigned its value.
tkilmer is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,293
Threads: 39,083
Posts: 171,370
Top Poster: smasher (2,575)
Welcome to our newest member, michael@2label
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.