How to Set the Number of Displayed Decimals in User Input

Whenever there is a user input on the Line or Header level, the displayed value is automatically set to two decimals. Internally, the number is stored with higher precision and it is also used at this higher precision in the calculation logic.

You can change the user input format to match the Format Type configured in the logic.

  1. In the calculation logic editing mode, click the 'Parameter Details' button.
  2. Add a new line.
    1. Enter the 'Parameter Name', which must exactly match the parameter defined in the logic.
    2. In 'Format', specify the number of decimals that will be displayed in the user input field, e.g., ##.0000 for four decimals.
  3. Click 'Apply' and then save the logic.

You can also define and set the parameter using a Groovy script:

api.userEntry("User Entry")
def p = api.getParameter("User Entry")
p?.setConfigParameter("formatType", "###.00000")