B Boeing747 macrumors member Original poster Jul 28, 2011 #1 Hey, Just wondering if there is a way for me to only show the amount of decimal points there are in a float in my program (instead of 1.5000000 1.5 or 1.000000 to 1. Thanks, B747
Hey, Just wondering if there is a way for me to only show the amount of decimal points there are in a float in my program (instead of 1.5000000 1.5 or 1.000000 to 1. Thanks, B747
B Boeing747 macrumors member Original poster Jul 28, 2011 #3 balamw said: What language or environment? B Click to expand... Objective C Xcode 4
balamw Moderator emeritus Jul 28, 2011 #5 lee1210 said: %g Click to expand... And that's not a smiley 😉 http://developer.apple.com/library/...pecifiers.html#//apple_ref/doc/uid/TP40004265 B
lee1210 said: %g Click to expand... And that's not a smiley 😉 http://developer.apple.com/library/...pecifiers.html#//apple_ref/doc/uid/TP40004265 B