These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Decimal Field Display Pattern

svsatishkumar
Registered: Nov 21 2007
Posts: 25

Hi,

I have a Decimal Field whose Interger length is 23 and Decimal Length 2.
when i give some input it should not add zero before the Interger part.
I tried by giving a Display Pattern of the format
ZZZZZZZZZZZZZZZZZZZZZZ9.99.

Up to 16 digits(Interger part) the value is formated correctly.
when the length crosses 16 it is showing some other number

say for the input 1234567890123456 output is 1234567890123456.00
12345678901234567 output is 12345678901234566
for some other numers also it is displaying some other number.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Ok, this isn't a JavaScript question. It's a Picture Clause question. Download the picture clause reference.

http://partners.adobe.com/public/developer/en/xml/picture_clause_2.0.pdf

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script