signup: Up- and down- rounding

View source: R/signup.R

signupR Documentation

Up- and down- rounding

Description

signup rounds the values in its first argument to the specified number of significant digits upwards.

signdown rounds the values in its first argument to the specified number of significant digits downwards.

Usage

signup(x, digits = 6)

signdown(x, digits = 6)

Arguments

x

a numeric vector.

digits

integer indicating the number of significant digits to be used.

See Also

signif

Examples

signup(c(1.111, 1.2345e5, 9.8765e-5), 3)

signdown(c(1.111, 1.2345e5, 9.8765e-5), 3)

insysbio/dbs-package documentation built on Aug. 4, 2022, 2:11 p.m.