pub fn check_in_range<F: Float + Display>( value: F, min: F, max: F, name: &str, ) -> Result<()>
Validate that a value is in a given range