Is there any equivalent to `java.lang.Double.doubl...
# kotlin-native
b
Is there any equivalent to
java.lang.Double.doubleToLongBits
in Kotlin/Common?
y
If I remember right it was added in kotlin 1.2
👌 1
i
It is provided as extensions `toBits`/`toRawBits` on
Double
And to convert back from long to double, there is
Double.fromBits
in Double companion (i.e. this one is like static)
btw, #multiplatform better fits for questions about Kotlin/Common
b
Cool! And thank you; I'll look there in the future 🙂