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

1
  • 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? Commented Jul 19, 2018 at 10:57

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.