embassy-rp

Crates

git

Versions

rp2040

Flavors

embassy_rp::rom_data::double_funcs

Function double_to_ufix64

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

Converts an f64 to an unsigned fixed point 64-bit integer representation where n specifies the position of the binary point in the resulting fixed point representation, e.g. f(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the range 0x0000000000000000 to 0xFFFFFFFFFFFFFFFF