• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
17

How to limit decimal spaces for simple calulations in a fillable pdf form

New Here ,
Dec 01, 2023 Dec 01, 2023

Copy link to clipboard

Copied

Looking for help with limiting the number of decimal spaces for simple calculations in a fillable pdf form.  We have the pdf created and used "Prepare a Form" for the fillable fields and those fields that are used in the calculation.  The math all works, but when the calculation runs, the resulting answering is infinite decimal fields.  This causes the answer to be an incredibly small font or for the result to read as "Infinite"

 

When I am in the Properties box for the answer field, the Format tab is already set to Number as the format category and Decimal Places is set to 2.

 

Any help would be much appreciated!

TOPICS
How to , PDF , PDF forms

Views

323

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2023 Dec 01, 2023

Copy link to clipboard

Copied

LATEST

The format setting just limits how the value is displayed, not the actual value itself.

If you're using a calculation script add this to the end of it to truncate the actual value to 2 decimals:

event.value = event.value.toFixed(2);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines