ceiling with digits

ceiling_digits(x, digits = 0)

Arguments

x

a numeric vector

digits

number of decimal places

Value

numeric vector

Examples

ceiling_digits(2.345, 1)
#> [1] 2.4