Features

  • Spell numbers in English words

  • You can spell up to 999 Million and with decimals

  • You can specify a currency too or leave blank - USD EUR & LBP are supported

Usage

spellNum(7670.10,2,'\$');
//Seven Thousand Six Hundred Seventy Dollars and Ten Cents

spellNum(15.06,2,'USD');
//Fifteen Dollars and Six Cents

spellNum(15.06,2,'EUR');
//Fifteen Euros and Six Cents

spellNum(15.06,2,'€');
//Fifteen Euros and Six Cents

spellNum(7814427.75,2,'LBP');
//Seven Million Eight Hundred Fourteen Thousand Four Hundred Twenty Seven Lebanese Pounds

example

Libraries

spell_num