decode_multiplier

Function decode_multiplier 

Source
pub fn decode_multiplier(value: i64) -> Result<Quantity>
Expand description

Decodes a multiplier from the given value, expressed in units of 1e-9. Uses exact integer arithmetic to avoid precision loss in financial calculations.

ยงErrors

Returns an error if value is negative (invalid multiplier).