Skip to contents

from float number to fixed digits character

Usage

round_string(x, digits = 2)

Arguments

x

number

digits

hold n digits after the decimal point

Value

character

Examples

round_string(1.1, 2)
#> [1] "1.10"