| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> spelling a number-how does it work?
Hi,
I came upon the following script a Thomas Kyte's web site on Oracle.
How To 'spell' a number
The question arises -- how can I get "ten" back from the number 10? How can I spell numbers out?
You can use a date function to do this....
1* select to_char( to_date(5373484,'J'),'Jsp') from dual
SQL> /
TO_CHAR(TO_DATE(5373484,'J'),'JSP')
--------------------------------------------------------------------------
Five Million Three Hundred Seventy-Three Thousand Four Hundred
Eighty-Four
This will work for numbers between 1 and 5,373,484...
I tried it , it works but how?
Thanks
Anurag
also reply at
anurag_at_synergy-infotech.com
![]() |
![]() |