Skip to content

a tiny JavaScript library for money and currency formatting

Notifications You must be signed in to change notification settings

habibpour/rial.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

rial.js

a tiny JavaScript library for money and currency formatting
Made by: Saeid Habibpour, Founder of Metaweb.co

var rial = new Rial( {
			decimal : ",",
			alphabet : "fa",
			currency : "هزار ریال",
			cut : 3,
			} );

rial.get("425420000000");
// ۴۲۵,۴۲۰,۰۰۰ هزار ریال

rial.Alphabet("en").Currency("ریال").Cut(0).get("425420000000");
// 425,420,000,000 ریال


rial.Decimal(".").Alphabet("en").Currency("").Cut(0).get("۴۲۵,۴۲۰,۰۰۰");
// 425.420.000

About

a tiny JavaScript library for money and currency formatting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published