round_to_magnitude: Round up the nearest order of magnitude

View source: R/aux-fcns.R

round_to_magnitudeR Documentation

Round up the nearest order of magnitude

Description

For example, if x is 12, this function returns 100. If x is 0.12, this function returns 0.1.

Usage

round_to_magnitude(x)

Arguments

x

Number to be rounded (numeric)

Value

Nearest order of magnitude larger than x


omkarakatta/ivqr documentation built on Aug. 20, 2022, 11:04 p.m.