R/utils.R
pct2str.Rd
Converts decimal percentage to string with specified digits
pct2str(v, digits = 2)
A single value
number of digits
Boolean
nums <- 0.23 pct2str(nums) #> [1] "23.00"