Standard library / math

math.Float32bits()

Returns the IEEE 754 binary32 bit representation, not a numeric conversion. Expected stdout: '1065353216\n'.

Formal Syntax & Structure

go syntaxgo
func Float32bits(f float32) uint32

Parameters & Attributes

NameTypeDescription
ffloat32Input floating-point value.

Return Value

uint32

Returns the IEEE 754 binary32 bit representation, not a numeric conversion.

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(math.Float32bits(1))}
Go Reference