floor with digits

floor_digits(x, digits = 0)

Arguments

x

a numeric vector

digits

number of decimal places

Value

numeric vector

Examples

floor_digits(2.345, 1)
#> [1] 2.3