within_percentage

Function within_percentage 

Source
pub fn within_percentage(a: Decimal, b: Decimal, percentage: Decimal) -> bool
Expand description

Checks if a value is within a percentage of another value.

Returns true if |a - b| <= |b| * (percentage / 100).