pub fn fixed_code(
x: &Decimal,
minimum: &Decimal,
resolution: &Decimal,
values: u128,
) -> Result<u64, WriteRefusal>Expand description
A fixed field’s code for x: round((x − minimum) / resolution),
a tie to the even code, in exact decimal arithmetic (range when it is
not one of the field’s values codes).