07-10-2006, 02:29 PM
I am not sure what I am doing wrong. I initialize a variable int rpercent=0.25, then I did out rpercent and it gave me 0 instead of 0.25.
Declaring Variables
|
07-10-2006, 02:29 PM
I am not sure what I am doing wrong. I initialize a variable int rpercent=0.25, then I did out rpercent and it gave me 0 instead of 0.25.
07-10-2006, 02:32 PM
int uses only "real" numbers, no decimals. for "3.005835" use double.
07-10-2006, 02:41 PM
07-10-2006, 02:52 PM
yep, that's right. that's the computer world's equivilant of scientific notation.
07-10-2006, 03:00 PM
Oh so the "e" does not mean its an error then
Thank you |
« Next Oldest | Next Newest »
|