Skip to main content

q_fixed

Function q_fixed 

Source
fn q_fixed(value: f64, frac: usize, width: usize) -> Option<i64>
Expand description

Quantise a finite real into signed Q(frac) of width bits, or None when the value is non-finite or falls outside the representable two’s-complement range.