Decimal

The Decimal field is a numerical field that stores decimal values. Use it for data such as salary, price or other values that need fractional precision.

Create a Decimal field

  1. Click the + icon next to the last field in your table.
  2. Enter a name for the field.
  3. Select Decimal from the list of field types.
  4. Configure the Precision setting (maximum 8 digits).
  5. Select a Thousands and decimal separators style for the display. Refer to Separator styles below.
  6. (Optional) To shorten long values in the cell, select a Large number abbreviation option. Refer to Large number abbreviation below.
  7. (Optional) Set a default value for the field.
  8. (Optional) Add a description.
  9. Click Save Field. NocoDB adds the field to your table.

Refer to the general guidelines on creating a field.

The default precision is 1 digit.

Separator styles

Use the Thousands and decimal separators dropdown to set the format of decimal values in the cell. Select one of these styles:

OptionExample (1,000,000.50)
LocaleUses the browser/system locale of the viewer (for example, 1,000,000.50 in en-US, 1.000.000,50 in de-DE)
None and period1000000.50
None and comma1000000,50
Comma and period1,000,000.50
Period and comma1.000.000,50
Space and period1 000 000.50
Space and comma1 000 000,50

Decimal separator styles

Separators change only how the value is displayed. NocoDB stores the numeric value without separators, and this setting does not change it. Thus the value stays consistent for sorting, filtering, formulas and exports.

When you enter or paste values, you can include thousand separator characters (commas, periods, spaces or non-breaking spaces). NocoDB treats them as visual noise. It removes them before it saves the value.

Large number abbreviation

Use the Large number abbreviation dropdown to show long values in a short form, such as 1.23M instead of 1234567.89. The default is None. With None, values stay full length.

OptionExample (1234567.89, precision 2)
None1234567.89
Auto1.23M
Thousand1234.57K
Million1.23M
Billion0B
Trillion0T

Auto selects the unit from the size of the value: K for thousands, M for millions, B for billions and T for trillions. Values below one thousand are not abbreviated. But, like shortened values, they drop trailing zeros. The other options always use the unit that you select. Thus a value much smaller than that unit rounds down to 0.

NocoDB rounds shortened values to the precision of the field, to a maximum of four decimal places. Shortened values still follow the separator style of the field.

Large number abbreviation options on a Decimal field

Abbreviation changes only how the value is displayed. NocoDB stores the full value, and this setting does not change it. Thus sorting, filtering and formulas do not change. To see and edit the full number, click into a cell. When you copy a cell, you copy the full number, not the shortened text.

A field that shows shortened values also accepts them when you paste. If you paste 1.2M into a cell, NocoDB stores 1200000. You cannot type a suffix into a cell. If you do, the cell goes back to its stored value.

Cell display

The Decimal field shows as a numeric cell in the table. The cell is right-aligned to make it easy to read. Values show with the configured precision and separator style.

Number field cell display

Good to know

  • NocoDB supports a maximum of 8 digits of precision.

Last updated on

Latest product updates?See Changelog
Stay in the loop? Follow us onLinkedInLinkedInYouTubeYouTubeXX