financialFmt: Format a number in "financial" format

View source: R/financialFmt.R

financialFmtR Documentation

Format a number in "financial" format

Description

Format a number in "financial" format

Usage

financialFmt(x, prefix = "", accuracy = 1)

dollarFmt(x, ...)

Arguments

x

Value to be formatted (numeric)

prefix

Prefix to prepend, typically a currency symbol (character, optional)

accuracy

Accuracy of formatted result; e.g., 1 for rounding to nearest dollar, 0.01 for rounding to nearest penny (numeric, optional)

...

Passed to financialFmr

Value

A string


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.