Loïc Lamarque
06/13/2026, 12:53 PM12 / 0 behaves differently on every platform
On Kotlin/JS, 12 / 0 silently returns 0. On JVM and Native it throws ArithmeticException. That guard you wrote and tested on JVM? It is silently bypassed when the same code runs on JS.
We wrote a short post about what causes this and how the Integer type in Kotools Types 5.1.1 fixes it consistently across all three targets — including null-safe divOrNull and remOrNull variants for those who prefer not to catch exceptions.
Read it here 👇Dan Rusu
06/13/2026, 4:53 PMArtem Kobzar
06/15/2026, 3:10 PMLoïc Lamarque
06/16/2026, 10:57 AMInteger will use numeric platform-specific types instead of String. This would definitely improve performance of integers' arithmetics. See its changelog.