Results 1 to 2 of 2
  1. #1
    20GT is offline Member
    Join Date
    Nov 2014
    Posts
    2
    Rep Power
    0

    Default How to get this statement to round (this is written for an Adobe Acrobat PDF)

    this is written for an Adobe Acrobat PDF

    How do I get this statement to also round the final value total?

    this.getField("TOS").value = (applesTotal + grapesTotal + orangesTotal \ (fields.length * 5);


    Any help would be awesome
    Last edited by 20GT; 03-25-2015 at 11:44 PM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: How to get this statement to round (this is written for an Adobe Acrobat PDF)

    Please post the code's output and show what you want the output to be.

    The Math class has methods for rounding values.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 2
    Last Post: 04-28-2013, 01:50 AM
  2. Vertical-align form field in adobe acrobat
    By Pyramide in forum New To Java
    Replies: 2
    Last Post: 07-23-2012, 11:01 PM
  3. import com.adobe.acrobat
    By minhtttran in forum Eclipse
    Replies: 3
    Last Post: 01-13-2009, 03:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •