Skip to content

a simple javascript library that convert numbers to Persian Word

License

Notifications You must be signed in to change notification settings

ATofighi/numberToWord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Number To Word

a simple javascript library that convert numbers to Persian Word

How to use:

add this code to your <head> tag:

<script src="https://raw.githubusercontent.com/ATofighi/numberToWord/master/numberToWord.js"></script>

now, use this code to your javascript codes:

numberToWord(number); // number is an integer from -999999999999999999999999999999999999999999999999999 to 999999999999999999999999999999999999999999999999999

Examples:

numberToWord("0"); // صفر
numberToWord("1000"); // یک هزار
numberToWord("1394"); // یک هزار و سیصد و نود و چهار 
numberToWord("-5"); // منفی پنج

About

a simple javascript library that convert numbers to Persian Word

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published