pub fn is_within_tolerance(value: f64, target: f64, tolerance: f64) -> bool
Check if a value is within a tolerance of a target.