Skip to content

Noninus/simple_currency_format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple API to format currency values.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages