With a step, down to a multiple of it: floor(7, 5) is 5 and floor(0.37, 0.25) is 0.25, read as the decimals they are, so floor(0.3, 0.1) is 0.3. A step of 0 or less gives empty. Below zero it goes down too: floor(-1.5) is -2.

Syntax

floor(number, step?)

Arguments marked ? are optional. An ellipsis (…) allows more arguments.

Try an example

floor(Words / 2)

Returns 600 (number).

Your turnAn example, separate from your shelf
Change the example note’s properties

Run the expression to see its result here.

Date examples use 9 October 2026, 12:00 UTC. Examples run in your browser using Shelf’s formula engine.

Use it in your library

The example names the sample note’s properties. In the app, the formula editor shows the same example with your library’s own properties. Write a property name with spaces as prop("Target words"). The formula language reference explains values, operators, and lists.

Browse all functions