Round a value to a defined number of digits printing out trailing zeros, if applicable.
roundString(x, digits = 0, sci_range = Inf, sci_sep = "e", si_range)
A string with the value
The number to round
integer indicating the number of decimal places
See help for signifString()
(and you likely want
to round with signifString
if you want to use this argument)
The separator to use for scientific notation strings (typically this will be either "e" or "x10^" for computer- or human-readable output).
Deprecated, please use sci_range
Values that are not standard numbers like Inf
, NA
, and
NaN
are returned as "Inf"
, "NA"
, and NaN
.
round()
, signifString()