Skip to contents

Format numeric values.

Usage

formatF(x, digits = 3)

Arguments

x

A number or numeric vector.

digits

Number of decimal places of output. Defaults to 3.

Value

Formatted character string.

See also

Examples

formatF(pi, 20)
#> [1] "3.14159265358979311600"