This discussion is archived
1 Reply Latest reply: Sep 10, 2008 12:20 AM by 843785 RSS

float type

843785 Newbie
Currently Being Moderated
Hello!

Why this is happen?

float f1 = 1053.75f;
float f2 = 1052.8f;
System.out.println(f1 - f2);

Output: 0.9499512

But 1053.75 - 1052.8 = 0.95