|
1 | 1 | --- |
2 | 2 | title: 'Number' |
3 | | -description: 'This article explains how to create & work with a Number field.' |
| 3 | +description: 'This article explains how to create and use a Number field.' |
4 | 4 | tags: ['Fields', 'Field types', 'Numerical types', 'Number'] |
5 | 5 | keywords: ['Fields', 'Field types', 'Numerical types', 'Number', 'Create number field'] |
6 | 6 | --- |
7 | 7 |
|
| 8 | +The **Number** field is a numerical field used to store integer values. It is commonly used for data such as age, salary, price, or quantity. |
8 | 9 |
|
9 | | -`Number` field type is used to store numerical values. Use cases include storing `age`, `salary`, `price`, `quantity`, etc. |
| 10 | +<Callout type="warning">Supported range (JavaScript): -9,007,199,254,740,991 to 9,007,199,254,740,991</Callout> |
10 | 11 |
|
11 | | -## Create a number field |
12 | | -1. Click on `+` icon to the right of `Fields header` |
13 | | -2. On the dropdown modal, enter the field name (Optional). |
14 | | -3. Select the field type as `Number` from the dropdown. |
15 | | -4. Set default value for the field (Optional). |
16 | | -5. Click on `Save Field` button. |
| 12 | +## Create a Number field |
17 | 13 |
|
18 | | - |
| 14 | +1. Click the `+` icon next to the last field in your table. |
| 15 | +2. Enter a name for the field. |
| 16 | +3. Select **Number** from the list of field types. |
| 17 | +4. (Optional) Toggle **Show thousands separator** to format large numbers with a thousand separator (e.g., 1,000 instead of 1000). |
| 18 | +5. (Optional) Set a default value for the field and add a description. |
| 19 | +6. Click **Save field** to add the field to your table. |
19 | 20 |
|
20 | | -<Callout type="note"> |
21 | | -- This field type can hold both positive and negative numbers. |
22 | | -- Supported range (JavaScript): -9007199254740991 to 9007199254740991 |
23 | | -</Callout> |
| 21 | +Refer to the general guidelines on [creating a field](/docs/product-docs/fields#create-a-field). |
24 | 22 |
|
25 | | -## Similar numerical fields |
26 | | -Following are the other numerical fields available in NocoDB, with some custom add-on features. |
27 | | -- [Decimal](/docs/product-docs/fields/field-types/numerical/decimal) |
28 | | -- [Percent](/docs/product-docs/fields/field-types/numerical/percent) |
29 | | -- [Currency](/docs/product-docs/fields/field-types/numerical/currency) |
| 23 | +<Callout type="info">The Number field supports both positive and negative values.</Callout> |
| 24 | + |
| 25 | +## Cell display |
| 26 | + |
| 27 | +The **Number** field appears as a numeric cell in the table. Its display aligns to the right by default for clarity and consistency when handling numerical data. If the **Show thousands separator** option is enabled, large numbers will be formatted with a comma as the thousand separator. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +--- |
0 commit comments