Apply

How to Convert a Value to Two Floating Points (REALTWO)

Using Advanced Expression Piping within your forms you can create mathematical formulas in order to calculate a value. Using the REALTWO expression, results are displayed with two floating points (1.00, 2.50, 3.14, etc.). This article describes this expression further by providing use cases and rules for proper formatting.

The REAL function allows the expression to convert a set of values into a floating point or real value for either a single value or a list of values from a number of given fields. The difference between REAL and REALTWO is that REALTWO returns the value with two decimal places (1.00) whereas REAL converts the value to a single decimal place (1.0).

TIP! REALTWO can be useful when calculating monetary values.

The setup and formatting of the REALTWO expression is imperative in preventing an error message from appearing on your form where the result of your expression would normally appear. The first line of the REALTWO expression should be set up as follows:

• Each expression is always contained within a pair of double "curly" brackets {{  }}
• There should be a space between the first instance of REALTWO and the last bracket
• Variables you are using are case sensitive
• Always close the REALTWO operation with brackets ( )

What's different of REALTWO over some of the other functions is that REALTWO can be used in conjunction with other functions. For example, using the AVG function, if we want to calculate the average of 3 values, should that value return a floating point, REALTWO can be used to ensure the value displays up to 2 decimal points.