Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

using wordnum function for 3 decimal numbers .

$
0
0

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");


Viewing all articles
Browse latest Browse all 5571

Trending Articles