Skip to main content

SANE_FIX

Function SANE_FIX 

Source
pub fn SANE_FIX(value: f64) -> SANE_Fixed
Expand description

Converts a floating point number to SANE_Fixed (SANE_FIX).

Truncates toward zero like the C macro, and saturates when value is out of range.