swatbat
[H]F Junkie
- Joined
- Apr 25, 2001
- Messages
- 13,052
I'm trying to make a quick multiplication program and can not figure out how to set a constant varriable with a decimal in it. Can anyone help me with this.
Ie
float salestax
How would I define this as 0.055 so I can make it a %
I'm looking at like final salestax =
How do I set this up as a number. Do I need to put f after it and how do I enclose it so I can have the . in it?
Thanks
Ie
float salestax
How would I define this as 0.055 so I can make it a %
I'm looking at like final salestax =
How do I set this up as a number. Do I need to put f after it and how do I enclose it so I can have the . in it?
Thanks