How-To: Round a Number by Two Decimal Places

The format() function is extremely powerful. It allows you to manipulate data using printf formatting. The round() function rounds to the nearest integer and does not include decimals.

This example will round the value of thatSize and save it to the field thisSize with two decimal places.

thisSize := format("%.2", field = thisSize)

%.1f would be 1 decimal place, %.3f would be 3 decimal places, etc.