approx_eq

Function approx_eq 

Source
pub fn approx_eq(a: Decimal, b: Decimal, tolerance: Decimal) -> bool
Expand description

Compares two decimals with an absolute tolerance.

Returns true if |a - b| <= tolerance.