Documentation

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!


Linux Package Signing Key Rotation

All signed InfluxData Linux packages have been resigned with an updated key. If using Linux, you may need to update your package configuration to continue to download and verify InfluxData software packages.

For more information, see the Linux Package Signing Key Rotation blog post.