round

Learn how to use the round function in Notion formulas.

The round() function rounds its argument to the nearest integer (whole number).

round(number)

number.(round)
Code language: JavaScript (javascript)

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.

Rounding Functions - ceil, floor, round, trunc
Note: Notion formulas don’t have a trunc() function (this graphic shows JavaScript rounding functions). But you can build your own trunc expression – see the bottom of this section in the ceil() article.
round(4.5) /* Output: 5 */

4.49.round() /* Output: 4 */

round(-4.49) /* Output: -4 */

-4.5.round() /* Output: -4 */

round(-4.51) /* Output: -5 */
Code language: JavaScript (javascript)

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
Code language: JavaScript (javascript)

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 */

(4.158015 * 100).round() / 100 /* Output: 4.16 */

round(5145.018394 * 10000) / 10000 /* Output: 5145.0184 */
Code language: JavaScript (javascript)

The example database below contains a formula that rounds the input number to several different decimal places.

Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.
A new tool that blends your everyday work apps into one. It’s the all-in-one workspace for you and your team
thomasfrank.notion.site
"One Decimal: " + (round(prop("Number") * 10) / 10) +
"\nTwo Decimals: " + (round(prop("Number") * 100) / 100) +
"\nThree Decimals: " + (round(prop("Number") * 1000) / 1000) +
"\nFour Decimals: " + (round(prop("Number") * 10000) / 10000) +
"\nFive Decimals: " + (round(prop("Number") * 100000) / 100000)
Code language: JavaScript (javascript)

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:

format – Thomas Frank
thomasjfrank.com
multiply – Thomas Frank
thomasjfrank.com
divide – Thomas Frank
thomasjfrank.com
add – Thomas Frank
thomasjfrank.com
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas