Skip to contents

from percent number to float number

Usage

percent_to_float(x, digits = 2, to_double = FALSE)

Arguments

x

percent number character

digits

hold n digits after the decimal point

to_double

use double output

Value

float character or double of x

Examples

percent_to_float("12%")
#> [1] "0.12"