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) uint32Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| f | float32 | Input 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))}