Round() produced weird result
So, I’m debugging my code, and I found a weird bug(?) in Kotlin. I don’t know if this is intended, but from the code examples I saw online, this is not supposed to be the case.
unrounded: 1664.5
rounded: 1664.0 ← round(): double
expected: 1665.0
4 posts - 2 participants
Read full topic