Float type problem
-
Hello. I have problem with calculating float variables.
Sample:
float a = 5.2;
float result = a*a;So result = 27.040000000000003!!!!
How to fix it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Float type problem’ is closed to new replies.