<Kotlin - Wrong Double Addition> Expected behavior...
# stackoverflow
u
Kotlin - Wrong Double Addition Expected behavior print(33.3 + 6.66) // output = 39.69 Actual behavior print(33.3 + 6.66) // output = 39.959999999999994 I tried this on android app, android studio testing and kotlin playground and getting the same unexpected behavior My question is how to achieve the expected behavior without any rounding