Skip to content

The number field

The number field: decimals, separators, and what the display rounds. How blank differs from zero in sorts and summaries, and the JSON a cell returns.

Updated November 2026

A number field stores a numeric value and nothing else. Use it for a quantity in stock, seats or kilograms. The column underneath is numeric, so comparisons are numeric too. 9 sorts before 10, and a filter like "greater than" compares by size. In the demo plant shop, In stock on the Plants table is a number field.

Numbers are right-aligned in the grid, so figures line up digit by digit.

Editing a number field: the Decimals input and the Separators toggle in the field editor.

The options

  • Decimals: how many decimal places the grid shows, from 0 to 6, or Auto. Auto shows the number just as it was typed. This setting affects display only. The stored value keeps full precision, so a cell showing 1.2 may hold 1.23, and if you raise Decimals later, the digits that were stored all along appear.
  • Format: how a figure is written, as 1,234.56, 1.234,56, 1 234,56 or 1 234.56. The format belongs to the field, not to whoever is looking at it, so a table reads the same on every machine. Tabla also uses it to read what you type or paste. In a 1.234,56 field, 12.500 is twelve thousand five hundred and 1,5 is one and a half.
  • Separators: shows 1,234,567 instead of 1234567, in the field's format (1.234.567 in a 1.234,56 field).

While you're editing a cell it shows the raw value, with no separators and no rounding, written with the field's own decimal mark. That raw value is what's stored.

When you type or paste, the figure can have other things around it: a currency sign or code, a %, spaces between the thousands. If a figure has both a period and a comma, the last one is read as the decimal mark whatever the field's format, so 12.500,00 and 12,500.00 both come in as 12500. Only 1.500 and 1,500, which can be read two ways, go by the field's format. A dash where the cents would be means a whole amount, so 1.500,- is fifteen hundred. Text that isn't one number (n/a, a date, 5 to 10, a bound like <0.05, a name like COVID-19) leaves the cell as it was.

Digits typed on an Arabic or Persian keyboard are read as the same number, so ٣٥٠ is 350 whatever the field's format. The same goes for the Arabic marks: ١٬٢٥٠٫٥٠ is 1250.50, since ٬ only ever separates thousands and ٫ only ever marks the decimals. This works in the grid, the record panel, a filter, a paste and a public form.

Copying a cell copies the value as stored, in the field's own format, with every digit and no thousands separators. A figure copied out of a 1.234,56 field is the same number when pasted into a 1,234.56 field, and a spreadsheet gets the value itself, not the rounded figure the grid displays.

Blank versus zero

An empty number cell holds nothing. It is not 0, and Tabla never treats it as 0:

  • Sorts: an ascending sort puts blanks after every value, and a descending sort puts them first. 0 is sorted as a value, among the other values.
  • Summaries: Sum and Average skip blank cells, and Average divides by the count of filled cells, not by the count of all records. A field with no values shows a blank summary, not a misleading 0. To count the blanks themselves, use Filled, Empty, and Percent filled.
  • Filters: is less than 5 does not match blank cells. To filter on blanks directly, use is empty or isn't empty.

You can filter a number field with is, is not, is greater than, is at least, is less than, is at most, is empty and isn't empty.

Over the API

A number cell is a JSON number at full stored precision. The Decimals display cap is not applied:

{ "fields": { "In stock": 12 } }

Writes must be JSON numbers, so send 12 and not "12". A string is refused with Field "In stock" expects a number. Nothing is coerced. Clear a cell with null, and an empty cell reads back as null. See Writing records over the API.

Which number field to use

Number is the plain one in a family of five types that share one numeric column. Currency, percent, rating, and duration use the same storage and present it differently. Pick by what the number means. If you picked the wrong one, you can change the type. Switching between number, currency and percent is free and touches no data. Rating and duration read the number their own way, so when you change a field to one of them the dialog first says what that does to the values.

Some values look like numbers but shouldn't be stored as numbers:

  • Identifiers: phone numbers, zip codes, order numbers with leading zeros. A number field stores the numeric value, so 01001 becomes 1001. Use text or the phone field.
  • A count of linked records: don't maintain it by hand. A rollup counts them and can't drift.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides