Consistent rounding for strings

digits(x, n = 2)

Arguments

x

number to round

n

number of digits