← 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
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .