R/give_n_digits.R
give_n_digits.Rd
A helper function that always prints a specified number of decimals
give_n_digits(x, n = 2)
a numeric vector
the number of decimal places to print
give_n_digits(0.0293526, n = 2) #> [1] "0.03"