Skip to content

a package to add thousand-bit separator for a number value.

License

Notifications You must be signed in to change notification settings

gejiawen/bullhead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bullhead

a package to add thousand-bit separator for a number value.

Examples

var bh = require('bullhead');

console.log(bh(12000)); 			// 12,000
console.log(bh(12000, 2)); 			// 12,000.00
console.log(bh(12000, 2, '$'));		// $12,000.00
console.log(bh(12000.332, 2, '$'));	// $12,000.33

About

a package to add thousand-bit separator for a number value.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published