embassy-rp

Crates

git

Versions

rp2040

Flavors

embassy_rp::rom_data::double_funcs

Function fix64_to_doubl

Source
pub extern "C" fn fix64_to_doubl(v: i64, n: i32) -> f64
Expand description

Converts a signed fixed point 64-bit integer representation to the nearest double value, rounding to even on tie. n specifies the position of the binary point in fixed point, so f = nearest(v/(2^n))