Am I missing something basic in Java Math calculations for float numbers ? I can use Math function round(), However I want accurate value 6.4 as the input given is simple and doesn't have many values after the decimal point.
System.out.println(1.8f+1.0f+1.9f+1.7f); // Expected 6.4 but actual is 6.3999999999999995 how ?