Skip to main content

decimal_quantum

Function decimal_quantum 

Source
pub fn decimal_quantum(value: Decimal) -> Decimal
Expand description

Calculate the quantum (smallest unit) of a decimal number based on its precision. For example: 10.436 has quantum 0.001, 100.00 has quantum 0.01