wrap.rd0: Round a number (with leading zeros)

View source: R/wrap.rd0.R

wrap.rd0R Documentation

Round a number (with leading zeros)

Description

Rounds a number, includes the leading zero, and retains at least one significant digit when possible. (This is a helper function that will be called by other functions in this package.)

Usage

wrap.rd0(num, places = 2)

Arguments

num

The number that will be rounded

places

The number of decimal places to which to round the number

Examples

wrap.rd0(num = 0.0145, places = 3)


michaelkardas/bwrappers documentation built on Nov. 13, 2022, 1:14 a.m.