Celebrate WordCamp Europe - 30% OFF! Use coupon WC30 - View Details

Number Rounding ExamplesPRO

Here are some example calculations for rounding numbers. These examples use field ID 123 which you should change to the ID of the field you wish to round.

Round to the Nearest Whole Number

#calc(#round(#field(123)))

Round to 2 Decimal Places

#calc(#round(#field(123), 2))

Round to the Nearest 50

#calc(#round(#field(123) / 50) * 50)

Round to the Nearest 1000

#calc(#round(#field(123) / 1000) * 1000)