Spell a Number in PL/SQL
Select To_Char(To_Date(To_Char(Floor
Amt)),'J'),'JSP')
||' AND '||To_Char(To_Date(To_Char(
Amt-Floor
Amt))*100),'J'),'JSP')
From Dual
Execute in Toad
Input :Amt as 38718.17
Output: THIRTY-EIGHT THOUSAND SEVEN HUNDRED EIGHTEEN AND SEVENTEEN
But this has a max limit 5373484.99
Actually query use Julian date conversion that must be between 1 and 5373484
Need spell out any number? Use a function.
Any one need Oracle Function please request, I will get it for you.
If you like this post leave a comment and add to my reputation, thanks!
Select To_Char(To_Date(To_Char(Floor
||' AND '||To_Char(To_Date(To_Char(
From Dual
Execute in Toad
Input :Amt as 38718.17
Output: THIRTY-EIGHT THOUSAND SEVEN HUNDRED EIGHTEEN AND SEVENTEEN
But this has a max limit 5373484.99
Actually query use Julian date conversion that must be between 1 and 5373484
Need spell out any number? Use a function.
Any one need Oracle Function please request, I will get it for you.
If you like this post leave a comment and add to my reputation, thanks!
Last edited: