formatF: Format numeric values.

Description Usage Arguments Value See Also Examples

View source: R/bruceR_basic.R

Description

Format numeric values.

Usage

1
formatF(x, digits = 3, nsmall = digits)

Arguments

x

A number or numeric vector.

digits, nsmall

Number of decimal places of output. Default is 3.

Value

Formatted character string.

See Also

format, formatN

Examples

1
formatF(pi, 20)

bruceR documentation built on June 22, 2021, 1:06 a.m.