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
Parameters
b
(Required) Value to operate on.
Examples
Convert bits into a float value
import "math"
math.float64frombits(b: uint(v: 4))// 2e-323
Use math.float64frombits in map
import "math"
data
|> map(fn: (r) => ({r with _value: math.float64frombits(b: r._value)}))
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.