round_number: Round Number

Description Usage Arguments Details Value

View source: R/round_number.R

Description

Robust rounding function which is same as round but always rounds up on n.5 no matter the value of n

Usage

1
round_number(x, digits = 0)

Arguments

x

number or numbers to be rounded

digits

number of digits to round to, Default: 0

Details

R, and other languages do this weird thing where 1.5 is rounded to 2 an so is 2.5. Every .5 is rounded to the nearest even number. This isn't typically what you want in mathematics.

Value

rounded number


neilcuz/panenkar documentation built on June 19, 2021, 7:31 p.m.