Skip to contents

trans numbers to a fixed integer digit length

Usage

int_digits(x, digits = 2, scale_factor = FALSE)

Arguments

x

number

digits

integer digit length

scale_factor

return the scale_factor instead of value

Value

number

Examples

int_digits(0.0332, 1)
#> [1] 3.32