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:29 PM   #4 (permalink)
tkilmer
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default

Instead of
Code:
(100 / 9 * levelreached) * (45 - hits) / 36
do this
Code:
(100.0 / 9.0 * levelreached) * (45 - hits) / 36.0
This will force it to be a double
tkilmer is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,318
Threads: 39,113
Posts: 171,503
Top Poster: smasher (2,576)
Welcome to our newest member, lerner274
Powered by vBadvanced CMPS v3.1.0

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