Michael Paus
07/16/2022, 8:10 AMpublic static final long SIGN_BIT_MASK = 0x8000000000000000L;
a perfectly legal statement and its Kotlin counterpart
const val SIGN_BIT_MASK: Long = 0x8000000000000000L
results in an error? (Value out of range.)
Such inconsistencies make it very difficult to port any Math libraries from Java to Kotlin.Tóth István Zoltán
07/16/2022, 8:22 AMMichael Paus
07/16/2022, 8:25 AMDouble.toRawBits
and Double.fromBits
only use Long but not ULong
. But with the conversion .toLong
it works.