Hi All,
I was hoping someone would be able to help me with the following problem.
I have 3 text fields called "Text4" , "Text5" and "Text6"
Text4 is a Nett Total TextField
Text5 is a VAT TextField
Text6 is a Gross Total textField
"Text6" has a script as follows:
var a = this.getField("Text4").value;
var b = this.getField("Text5").value;
event.value = a+b;
so far so good! But...
when Text4 value is 108.41399999999999 //this displays in PDF as £108.41
Text5 value is 16.262099999999997 //this displays in PDF as £16.26
Text6 value is 124.67609999999999 //this displays in PDF as £124.68
what Text6 should say is £124.67!
How can i get round this, i know i need to use the math.round but am not sure how to apply this and i'm now stuck. Any help would be greatly appreciated.
Cheers all
set the Text6 properties like that: http://pix.am/GW8z.png
;-)
abracadabraPDF.net