W3cubDocs

/Kotlin

toRawBits

inline fun Double.toRawBits(): Long

Platform and version requirements: Kotlin 1.2

Returns a bit representation of the specified floating-point value as Long according to the IEEE 754 floating-point "double format" bit layout, preserving NaN values exact layout.

inline fun Float.toRawBits(): Int

Platform and version requirements: Kotlin 1.2

Returns a bit representation of the specified floating-point value as Int according to the IEEE 754 floating-point "single format" bit layout, preserving NaN values exact layout.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/to-raw-bits.html