Welcome to Zuora Product Documentation

Explore our rich library of product information

Round function

The Round function is used for rounding numbers with specified precision and optional rounding modes.

This function is used for number rounding.

Syntax

Round(Precision,RoundingMode)

  • The first argument is an integer between 0 and 10.

  • The second argument is optional. The default value of the second argument is HALF_UP. This argument has the following available options:

    • UP

    • DOWN

    • CEILING

    • FLOOR

    • HALF_UP

    • HALF_DOWN

    • HALF_EVEN

    • UNNECESSARY

Examples

You can also use the Round function for padding purposes. If an invoice has the amount of 10.125, the {{Amount|Round(2)}} function returns 10.13 in the rendered result, and the {{Amount|Round(4)}} function returns 10.1250 in the rendered result.