math.float64frombits() function

math.float64frombits() returns the floating-point number corresponding to the IEE 754 binary representation b, with the sign bit of b and the result in the same bit position.

Function type signature
(b: uint) => float
For more information, see Function type signatures.



(Required) Value to operate on.


Convert bits into a float value

import "math"

math.float64frombits(b: uint(v: 4))// 2e-323

Use math.float64frombits in map

import "math"

    |> map(fn: (r) => ({r with _value: math.float64frombits(b: r._value)}))

View example input and output

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.