|
-
April 14th, 2011, 10:37 AM
#1
About decimals
n00b question time ;-)
I am wondering how to make a calculation with decimals. I'm trying to do this:
result = numbers / percentage * 100;
So numbers = 1863.8 , percentage = 20 , the result should be: 9319
But instead I get an error because 1863.8 is not a valid int.
I have no idea to solve this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|