pub fn round_to(value: f64, granularity: f64) -> f64
Rounds the value with the specified granularity.
value
granularity
assert_eq!(akshually::math::round_to(1.93333, 0.05), 1.95);