Skip to contents

from float number to fixed significant digits character

Usage

signif_string(x, digits = 2)

Arguments

x

number

digits

hold n significant digits

Value

character

Examples

signif_string(1.1, 2)
#> [1] "1.1"