Embed a Numeric variable

To embed a numeric variable (or numeric attribute/array) within text, enter the object name enclosed within curly brackets. Optional formatting parameters can be included.

Format: {variable:X:Y}

The display format can be determined by adding a colon, field length X, colon, and then decimal places Y. Field length can be omitted, as shown in the second example below.

Example: {Cost:6:2} would display current value of a numeric variable Cost in a field of 6 characters with 2 decimal places and right justified.

Example: {Cost:2} would display current value of a numeric variable Cost in an appropriate size field with 2 decimal places.

NOTE that the X value represents the TOTAL field length, including the decimal places that you might specify as the Y value and the decimal point.

i.e. {Cost:6:2} gives NNN.NN

Alignment of columns of numbers

The easiest way to properly align a column of numbers is to ensure that the left-hand curly brackets line up and to use the same format parameters. e.g.

         {Cost:7:2}
         {Margin:7:2}
         {Package:7:2}
         {Total:7:2}     

will ensure the list is aligned to the decimal point.

Note also the use of extra spaces after List attributes/strings in order to ensure that fixed lengths are also used for text in columns.

e.g. {Grade }