Number

Learn about the Number data type in Notion formulas.

The Number data type holds and represents numbers. Numbers can be used with mathematical operators such as add + and divide / to perform mathematical operations and calculations.

2 + 2 /* Output: 4 */

6 / 2 /* Output: 3 */
Code language: JavaScript (javascript)

Mathematical operations follow the standard mathematical order of operations (PEMDAS).

3 + 4 * 5 /* Output: 23 */

(3 + 4) * 5 /* Output: 35 */
Code language: JavaScript (javascript)

To learn more, see the guide on operator precedence and associativity:

Operator Precedence and Associativity – Thomas Frank
thomasjfrank.com

Notion will automatically convert numbers with more than 21 digits to scientific notation when displayed in the formula property, but will display the full number in the formula editor:

See this in action in this example database:

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

Numbers will automatically be converted to strings if they are combined with other data types.

"There are " + prop("Members").length() + " members."
/* Output: "There are 12 members." */

["There are", prop("Member"),"members."].join(" ")
/* Output: "There are 12 members." */
Code language: JavaScript (javascript)
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