The separators are the reader's language's unless you give one: parseNumber("1.234,5", "de") is 1234.5. Any other text gives empty; toNumber reads only the plain form, 1234.5.

Syntax

parseNumber(text, locale?)

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

Try an example

parseNumber("1,234.5", "en")

Returns 1234.5 (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