round2: Rounding the way most people do it with .5 roudning up

View source: R/setup_dir.R

round2R Documentation

Rounding the way most people do it with .5 roudning up

Description

Rounding the way most people do it with .5 roudning up

Usage

round2(x, digits = 2)

Arguments

x

number to be rounded

digits

how many digits to round to

Value

'round2' returns a truncated 'numeric' with decimal places equal to 'digits' argument

Examples

x <- 1.2345
round2(x, digits = 2)

MCOE documentation built on May 29, 2024, 2:56 a.m.