math.float64bits() function

math.float64bits() returns the IEEE 754 binary representation of f, with the sign bit of f and the result in the same bit position.

Function type signature
(f: float) => uint

For more information, see Function type signatures.

Parameters

f

(Required) Value to operate on.

Examples

Return the binary expression of a value

import "math"

math.float64bits(f: 1234.56)// 4653144467747100426

Use math.float64bits in map

import "sampledata"
import "math"

sampledata.float()
    |> map(fn: (r) => ({r with _value: math.float64bits(f: r._value)}))

View example input and output


Was this page helpful?

Thank you for your feedback!