Skip to main content

dec

Function dec 

Source
pub fn dec(v: f64) -> Decimal
Expand description

Convert f64 to Decimal, returning Decimal::ZERO for unrepresentable values.

Shorthand for config/init code that doesn’t need field-name logging.