Standard library / math
math.Float64frombits()
Interprets a uint64 as an IEEE 754 binary64 bit pattern. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
func Float64frombits(b uint64) float64Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| b | uint64 | Input bit pattern or denominator, depending on signature. |
Return Value
float64
Interprets a uint64 as an IEEE 754 binary64 bit pattern.
Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(math.Float64frombits(0x3ff0000000000000))}