Skip to main content
Rounds a number to the provided precision, using normal rounding rules (a digit of 5 or higher rounds up, lower rounds down). Use this to tidy up prices, weights, or calculated totals so they have a consistent number of decimal places, for example rounding 19.876 to 19.88.

Fields

Sample data

FieldValue
Precision2
Input:
{
    "price": 19.876
}
Output:
{
    "price": 19.88
}