Skip to main content

round

Function round 

Source
pub fn round(num: Number, precision: i64, mode: RoundingMode) -> f64
Expand description

PHP round($num, $precision, $mode): always a float. Integers with a non-negative precision are returned as they are.