Remove one or more zeroes before the decimal point

noZero(str)

Arguments

str

The character string to process.

Value

The processed string.

See also

Examples

noZero("0.3");
#> [1] ".3"