1

Can someone explain this behaviour to me? Why is the float value initially not as precise as I would expect? Why is the double cast creating an even less precise value?

enter image description here

Bruno
  • 212
  • 1
  • 8
  • Thanks for educating me. Just one problem: I receive the double value 0.99 from an API which I decode. Is there any way I don't end up with this rounding error? – Bruno Jul 19 '18 at 10:57

0 Answers0