How you format you results to show a more or less to sign the number?

Hello! I was wondering if there was a good way to always display a positive symbol or negative in front of a number using custom calculations. I see in java, there is a DecimalFormat function that could achieve this goal, but I had no luck getting it to work. Any ideas?

Thank you!

Gordon

Firstly, Java and JavaScript are NOT the same thing. You can use functions JavaScript in a PDF file.

It's pretty simple to do what you described. Simply enter the following code as a script custom field Format:

If (event.value > 0) event.value = "+" + event.value;

This will cause the field to display a symbol more positive numbers, but will not change the actual value of the field so you can still use it in calculations. The negative symbol is of course part of a negative number, so there is no need to add it.

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Click here to follow the link opens in the currently selected tab

    FF17.0.1 (also ff16)Click here to follow the link (for example, a link in an email) opens in the currently selected FF window (which is a real pain) I don't know it used to open in a new tabCTRL-click here to follow a link from MS word opens in the e

  • Can't download photos to mpix

    Once the upgrade to the new version of flash is unable to download files for mpix image.Also the videos stopped playing.

  • restoration of AUTHORITY NT

    HI GUYS. I deleted the authority NT, the local service and network service, on my system. Even though my system is running, sort of, most crucial similar RPCSS services, are not running or not able to run. One of the very probable causes is missing N

  • HP downloads stuck in Panel configuration-HELP!

    My HP All - In - One Printer has been dead for over a year now and I have been going without putting my docs on disc and going to my local store print and print in this way. I MISS my printer but have no $ to buy another. PROBLEM is, many programs ar

  • Is the source Support 2 faces 476DW MFP HP LASERJET PRO 400 COLOR document

    A client must be able to analyze and automatically copy 2-sided documents. It is clear to me from the leaves of manual and specifications if the ADF of MFP 476DW will automatically handle documents sources 2 faces. There is a comment "document feeder