Closed realeatham closed 6 months ago
https://discuss.kotlinlang.org/t/kotlin-compiler-apparently-losing-double-value-precision/14076
See this, I think it's "normal" and nothing we can do about it
Oh wait, I could make it refactor or sum but do I really want to?
@realeatham this is completely normal behavior for floating point arithmetic in binary representation. Please try that in many other languages and you'll see the same result.
@sosauce you should close this issue.
@realeatham So this is basically a well known issue of floating point numbers in computer science.
Describe the bug See title
To Reproduce See title
Expected behavior The sum to equal 0.3
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context Could also be a problem with keval @notKamui