The round()
function rounds its argument to the nearest integer (whole number).
round(number)
The exact midpoint between two whole numbers will round up towards positive infinity, not “away from zero”.
For example: round(-4.5)
will round up to 4
.

Example Formulas
round(4.5) // Output: 5
round(4.49) // Output: 4
round(-4.49) // Output: -4
round(-4.5) // Output: -4
round(-4.51) // Output: -5
Rounding to Specific Decimal Places
The round()
function doesn’t accept additional arguments, so it can’t natively round a number to a specific decimal place.
However, you can accomplish this using the following formula:
// Round to two decimal places
round([number]*100)/100
// Round to three decimal places
round([number]*1000)/1000
The number of zeroes corresponds to the number of decimal places to which your number will be rounded.
round(9.24551*10)/10 // Output: 9.2
round(4.158015*100)/100 // Output: 4.16
round(5145.018394*10000)/10000 // Output: 5145.0184
Example Database
The example database below contains a formula that rounds the input number to several different decimal places.

View and Duplicate Database

“Rounded” Property Formula
// Compressed
"One Decimal: " + format(round(prop("Number") * 10) / 10) + "\n Two Decimals: " + format(round(prop("Number") * 100) / 100) + "\n Three Decimals: " + format(round(prop("Number") * 1000) / 1000) + "\n Four Decimals: " + format(round(prop("Number") * 10000) / 10000) + "\n Five Decimals: " + format(round(prop("Number") * 100000) / 100000)
// Expanded
"One Decimal: " + format(round(prop("Number") * 10) / 10) +
"\n Two Decimals: " + format(round(prop("Number") * 100) / 100) +
"\n Three Decimals: " + format(round(prop("Number") * 1000) / 1000) +
"\n Four Decimals: " + format(round(prop("Number") * 10000) / 10000) +
"\n Five Decimals: " + format(round(prop("Number") * 100000) / 100000)
This formula demonstrates decimal-rounding to five different places.
Each rounded number is then converted to a string using the format function, allowing us to craft a five-line block of text.
Note how \n
allows us to create a new line in the formula output.
Other formula components used in this example:



