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
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)}))
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.