pub fn validate_positive(value: f64, name: &str) -> Result<()>
Validate that a parameter is positive.