f2d

Macro f2d 

Source
macro_rules! f2d {
    ($val:expr) => { ... };
}
Expand description

Converts an f64 value to Decimal with error propagation.

This macro converts an f64 floating-point value to a Decimal type. It propagates any errors that might occur during conversion using the ? operator.

ยงParameters

  • $val - An f64 value to be converted to Decimal