juh juh
08/21/2022, 7:30 PMFloat.fromBits((-1e11f).toRawBits())
without getting distorted resultsephemient
08/22/2022, 12:51 AMFloat
is a bit of a lie, it behaves like a Double
(it's backed by JS Number
either way)val f = -1e11f // clamped to Float range at compile time, is -99999997952f on all platforms
val g = -1e11f.toFloat() // does't actually clamp to Float range at runtime on JS
f != g
Tom Yuval
08/22/2022, 12:30 PMDouble
work?ephemient
08/22/2022, 2:54 PM