a simple javascript library that convert numbers to Persian Word
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
numberToWord("0"); // صفر
numberToWord("1000"); // یک هزار
numberToWord("1394"); // یک هزار و سیصد و نود و چهار
numberToWord("-5"); // منفی پنج