Embassy
embassy-rp

Crates

git

Versions

rp2040

Flavors

Function embassy_rp::rom_data::float_funcs::fix_to_float

source ·
pub extern "C" fn fix_to_float(v: i32, n: i32) -> f32
Expand description

Converts a signed fixed point 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))