Skip to content

transforms a number to currency used in Chile (Chilean Pesos)

Notifications You must be signed in to change notification settings

juanbrujo/numberToCLPFormater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

numberToCLPFormater

transforms a number to currency used in Chile (Chilean Pesos).

npm version circleci status

NPM package

USE:

var number = require('numbertoclpformater').numberToCLPFormater

number(876142) 
// $876.142
Change currency symbol:
number(981426719, 'CLP$')
// CLP$981.426.719
Display cents, remove currency symbol
number(1001, false, true)
// 1.001,00
Negative number
number(-89163729)
// $-89.163.729

About

transforms a number to currency used in Chile (Chilean Pesos)

Resources

Stars

Watchers

Forks

Packages

No packages published