embassy-rp

Crates

git

Versions

rp2040

Flavors

embassy_rp::rom_data::float_funcs

Function ufix64_to_float

Source
pub extern "C" fn ufix64_to_float(v: u64, n: i32) -> f32
Expand description

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