Latest News

the latest news from our team

Formatting Money and Other Numbers

Monetary values and other numbers are easily formatted with a procedure. After you format the numbers, you can set the Alignment property of the paragraph that contains the numbers. Numbers in a table are often aligned to the right so the decimal lines up for better readability.

Formatting Numbers

Monetary values are usually formatted in the U.S. with two decimal places and a comma to separate ones, thousands, millions, etc. Variables that contain numeric values can be formatted in many ways, but formatting monetary values is the most common. The following column has balance data to format:
Balance1

Complete the following steps to format the values as money:

  1. Determine the name of the variable to format. An easy way to get the variable name is to click on a value in the table > Edit > Value. The variable name is in the Variable field.
  2. Find the variable in the form’s list of variables, right click the variable > Add Post-Condition Procedure > Numeric Format:
    Balance2
  3. Type a name for the procedure, select the variable from step 1 and click OK.
  4. In the Numeric Format window, set the following values or as required by your project.
    Decimal Places: 2
    Decimal Point Symbol: . (period)
    Group By Thousands: Checked
    Thousands Symbol: , (comma)
    Currency: Checked
    Currency Symbol: $ (dollar sign)
    Negative Symbol: – (dash)
    Leading negative symbol: CheckedBalance6
  5. Click OK.
  6. Right click the name of the procedure from step 3 > Add Action > Set Variable > select the variable name from step 1 and click OK.
  7. Save your project.

Right Alignment
Numerical values, including money amounts, are usually aligned to the right in the column of a table. This horizontal alignment is a property of the paragraph that contains the data. The following steps align numbers to the right:

  1. Find the paragraph that contains the data to align.
  2. Right click the paragraph > Edit > General and change Alignment to Right, and click OK.
    RightAlign
  3. Adjust column widths if necessary. Changing the alignment might require some width adjustment.
    Balance5
  4. Save your project.

 

Leave a Reply

Your email address will not be published. Required fields are marked *