Hi everyone, do primitives from Kotlin/Native tran...
# kotlin-native
Hi everyone, do primitives from Kotlin/Native translate correctly to iOS at the moment? I am trying to build a prototype framework and the values set in the framework are not the same that the view is showing.
Yes, Ruckus is correct, not all numbers could be represented in binary exponential form exactly, so depending on precision you output them, you could see small difference
It is an string output issue, not actual representation, just use formatting with smaller number of digits after dot
String formatting is the way to go for final output. If you need to manage rounding during calculation, you'll need some sort of BigDecimal representation, or use integers scaled up (for many money values, you can do all calculations in cents/kopek/etc.)
Okay, I see that now. Thanks!