f | R Documentation |
Format a number
f(x, digits = 0)
x |
The number |
digits |
The number of decimal points to use |
The formatted number will have comma-separated thousands, millions, etc.
and the exact number of decimal points given by digits
, even if the
last one is a zero.
A Character string. A formatted version of the number x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.