#![allow(dead_code)]
const TEN: f32 = 10.0;
pub fn approx_equals(a: f32, b: f32) -> bool {
(a - b).abs() < TEN.powi(-5)
}
pub fn round(n: f32, digits: i32) -> f32 {
let scale = TEN.powi(digits);
(n * scale).round() / scale
}
pub fn between(x: f32, a: f32, b: f32) -> bool {
x >= a && x <= b
}