cityrp.currency
Currency Library.
- Sharedcityrp.currency.format(amount) → stringSource ☍
-
Formats a number into a currency string: comma-grouped, padded to the configured decimals, with the sign ahead of the symbol (
-$1,234.50).Parameters
- amountstring|numberThe value to format; anything
tonumberrefuses formats as 0.
Returns
- stringThe formatted currency string.
- amountstring|numberThe value to format; anything
- Sharedcityrp.currencySource ☍