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 ouput


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.