v1.8.22
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin / fromBits

fromBits

Common
JVM
JS
Native
1.2
fun Double.Companion.fromBits(bits: Long): Double
(Common source) (JVM source) (JS source) (Native source)

Returns the Double value corresponding to a given bit representation.

Common
JVM
JS
Native
1.2
fun Float.Companion.fromBits(bits: Int): Float
(Common source) (JVM source) (JS source) (Native source)

Returns the Float value corresponding to a given bit representation.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains