within_basis_points

Function within_basis_points 

Source
pub fn within_basis_points(a: Decimal, b: Decimal, bps: Decimal) -> bool
Expand description

Checks if a value is within a basis point tolerance of another value.

One basis point = 0.01% = 0.0001.