Skip to main content

builtin_round

Function builtin_round 

Source
fn builtin_round(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Round to the specified number of decimal places using IEEE 754 round-half-to-even (banker’s rounding): when the fractional part is exactly 0.5, round to the nearest even number.

@param x numeric vector @param digits number of decimal places (default 0) @return numeric vector of rounded values