pub fn validate_finite(value: f32, param_name: &str) -> Result<(), OCRError>
Validates that a float value is finite (not NaN or infinite).