Description Usage Arguments See Also
These functions are extensions to formattable's currency() function.
.k
divides by 1,000 and adds "k" suffix;
.m
divides by 1,000,000 and adds "M" suffix;
.b
divides by 1,000,000,000 and adds "B" suffix.
.auto
automatically determines and applies whichever of the above formatting options is best.
1 2 3 4 5 6 7 | currency.k(x, digits = 2L)
currency.m(x, digits = 2L)
currency.b(x, digits = 2L)
currency.auto(x, digits = 2L)
|
x |
A numeric object |
digits |
Number of rounded digits, default is 2 |
[formattable::currency()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.