+ 1

Floating and Double Data Types: assign a float output to a double

When I write this: float f = 9.87f; System.out.println(f); double w = f; System.out.println(w); ... The output is this: 9.87 9.869999885559082 How does the value change?

21st Sep 2017, 1:28 PM
PurePureMilk
1 Réponse
21st Sep 2017, 4:33 PM
Tashi N
Tashi N - avatar