Level 1

0% to

Level 2

Tip /

to gain points, level up, and earn exciting badges like the new
Mission!

View all

# Adobe LiveCycle (Archived)

## using wordnum function for 3 decimal numbers .

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile
wackronie
Level 1

25-08-2015

Hi,

I am trying to convert three decimals numbers in to word that would display against the amount calculated on a Invoice form .

Currently i am using the below code for two decimal places however I have added a drop down for three decimal currencies like OMR & BHD Omani Rials & Bahraini Dinars respectively . They all have 3 decimals .Please help.

var Y;

Numberstoword.rawValue= WordNum(Grandtotal,2);

Y = Numberstoword.rawValue;

Y = Replace(Y,"Dollars","Currency"); // changed spellings here.

Y = Replace(Y,"Cents","Subcurrency");

#### Accepted Solutions (0)

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

10 solutions
View profile

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

10 solutions
View profile
PDFGuru
Level 2

31-08-2015

I am not able to fix your form, but somewhat i have acheived the query in a sample form.

https://www.dropbox.com/s/dvn68wm3oybs43l/sampleNumToWord.pdf?dl=0

Please check if that helps you.

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

10 solutions
View profile

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

10 solutions
View profile
PDFGuru
Level 2

31-08-2015

Please see the fixed form at following link:

https://www.dropbox.com/s/uj83ixt672he50q/test_form_fixed.pdf?dl=0

If you want to conatct me directly then please visit to following link and also see my other posts.

http://createpdfform.blogspot.in/2015/02/pdf-guru-acrobat-and-lc-designer-forms.html

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile
wackronie
Level 1

01-09-2015

Thank you for your efforts , i have also tried exactly the same script before posting on the forum .,its fails miserably in the calculations part where the number ends with zero .Not very helpful.There has to be some alternative .

Thanks Again .

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile
wackronie
Level 1

31-08-2015

Its still the same , https://drive.google.com/open?id=0Bz1pcyYu7_5aUHFDWUtBemd3aTA

Instead of the converting the full number in words it just converts the number upto 2 decimals .

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile

wackronie
Level 1

Likes

0 likes

Total Posts

5 posts

0 solutions
View profile
wackronie
Level 1

28-08-2015

Hi Karan,

Please find the link  below . I have scripted under the drop-down exit event of the Currency Selection.Except for First two rest all are working fine .

test form.pdf - Google Drive

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

10 solutions
View profile

PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts