SPELLNUMBER

Returns the word equivalent for a numerical number.

my_numberThe number you want to spell out.
main_unit_plural(Optional) The unit to use for whole numbers.
main_unit_single(Optional) The unit to use for 'single' whole numbers.
decimal_unit_plural(Optional) The unit to use for decimal numbers.
decimal_unit_single(Optional) The unit to use for 'single' decimal numbers.

Remarks

* At the moment this function only supports the English language.
* If a number contains more than two decimals this function will spell out the number as if it was rounded to two decimals.
* The equivalent VBA function is SPELLNUMBER

 A
1=JS.SPELLNUMBER(6)
2=JS.SPELLNUMBER(6,"pounds","pound")
3=JS.SPELLNUMBER(1,"pounds","pound")
4=JS.SPELLNUMBER(200)
5=JS.SPELLNUMBER(2017)
6=JS.SPELLNUMBER(2017,"pounds")
7=JS.SPELLNUMBER(2004,"pounds","pound")
8=JS.SPELLNUMBER(1000345)
9=JS.SPELLNUMBER(0.9,"Dollars","Dollar","Cents","Cent")
10=JS.SPELLNUMBER(20.123,"Dollars","Dollar","Cents","Cent")
11=JS.SPELLNUMBER(1000000)
12=JS.SPELLNUMBER(50000000)
13=JS.SPELLNUMBER(50003600)
14=JS.SPELLNUMBER(1001001100)
15=JS.SPELLNUMBER(1001001110)
16=JS.SPELLNUMBER(9999999999999,"Dollars","Dollar","Cents","Cent")

1 - What is the number '6' converted to words.
2 - What is the number '6' converted to words with the pound unit attached.
3 - What is the number '1' converted to words.
4 - What is the number '200' converted to words.
5 - What is the number '2017' converted to words.
6 - What is the number '2017' converted to words with the pound until attached.
7 - What is the number '2004' converted to words.
8 - What is the number '1000345' converted to words.
9 - What is the number '0.9' converted to words.
10 - What is the number '20.123' converted to words.
11 - What is the number '1000000' converted to words.
12 - What is the number '50000000' converted to words.
13 - What is the number '50003600' converted to words.
14 - What is the number '1001001100' converted to words.
15 - What is the number '1001001110' converted to words.
16 - What is the number '9999999999999' converted to words.


alt text

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext