signif_up: round up to most significant digit

Description Usage Arguments Value Examples

View source: R/signif_up.R

Description

round up a number to the most meaningful digits per scale of the number

Usage

1

Arguments

x

numeric

Value

numeric

Examples

1
2
3
4
5
6
signif_up(1320.65) # 1400
signif_up(132.5) # 140
signif_up(32.6)  # 40
signif_up(3.6)   # 4
signif_up(0.0654)  # 0.07
signif_up(c(1320.654, 3675.675, 5.7, 0.76))

SSoleymani/SiaDict documentation built on Dec. 31, 2020, 4:28 p.m.