Converts decimal percentage to string with specified digits

pct2str(v, digits = 2)

Arguments

v

A single value

digits

number of digits

Value

Boolean

Examples

nums <- 0.23
pct2str(nums)
#> [1] "23.00"