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!

The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more