Reply
Contributor
rockymancy
Posts: 4
0

Convertion Numbers in words on Vf page

I have an Salary custom object.In that i have field called Netpaid:(Currency data type) My question is if Netpaid=4845 Its has to show in like this on my Vfpage(Amount in words):Four Thousand Eight Hundred and Forty Five Rupees... More i want to convert it PDF... In pdf also it has to reflect in my pdf
Super Contributor
sfdcfox
Posts: 3,892
0

Re: Convertion Numbers in words on Vf page

In English, you would say "Four Thousand Eight Hundred Forty Five", as "and" is used only to denote a separation of currency, such as dollars and cents in the United States. English has several rules for various number sets, which makes the exact logic non-trivial: 0 through 19, 20 through 99, 100 through 999, 1,000 through 999,999, and 1,000,000 through 999,999,999. Fortunely, as I stated, you do not use the word "and" unless there are fractional parts. Once you write the function to convert the numbers to words, however, it does not matter if you use it in a PDF VF page or a "regular" VF page.

~ sfdcfox ~


I am a sandwich. That is all.

Contributor
rockymancy
Posts: 4
0

Re: Convertion Numbers in words on Vf page

Thanks for alot