Function smartnoise_runtime::utilities::f64_to_binary [−][src]
pub fn f64_to_binary(num: f64) -> String
Converts an f64
to String
of length 64, yielding the IEEE-754 binary representation of the f64
.
The first bit of the string is the sign, the next 11 are the exponent, and the last 52 are the mantissa. See here for an explanation of IEEE-754 64-bit floating-point numbers.
Arguments
num
- A number of type f64.
Return
A string showing the IEEE-754 binary representation of num
.