Strip leading zero from numeric string

strip_lzero(x)

Arguments

x

A numeric string (or number that can be converted to a string).

Value

A string with leading zero removed.

Examples

strip_lzero("0.05")
#> [1] ".05"