roundX: Functions for Rounding with 'round2'

roundXR Documentation

Functions for Rounding with round2

Description

This set of functions simplify and specialize the round2 function in exam package. Each function rounds the given number to the decimal points specified in the function itself.

Usage

round0(x)

round1(x)

round2(x)

round3(x)

round4(x)

Arguments

x

numeric. A numeric vector.

Details

The function round2 does what is known in German as kaufmaennisches Runden (rounding away from zero for trailing 5s).

Value

Numeric value or vector.

Author(s)

Omer Kara

References

For more information see round2.

See Also

round2

Examples

round0(2.67896)
round1(2.67896)
round2(2.67896)
round3(2.67896)
round4(2.67896)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.