Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 356 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 356 Bytes

simple_currency_format

A simple API to format currency values. As pattern, the package use pt_BR locale and R$ symbol.

Usage

Use currencyFormat function to format a num

print(currencyFormat(10));

Output:

R$ 10,00

Use removeZeroDecimal function to format a num

print(removeZeroDecimal(0500));

Output:

500