|
|
|
---
|
|
|
|
title: 'Decimal'
|
|
|
|
description: 'This article explains how to create & work with a Decimal field.'
|
|
|
|
tags: ['Fields', 'Field types', 'Numerical types', 'Decimal']
|
|
|
|
keywords: ['Fields', 'Field types', 'Numerical types', 'Decimal', 'Create decimal field']
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
`Decimal` field type is used to store decimal values. Use cases include storing `salary`, `price`, etc. NocoDB supports precision of upto 8 digits.
|
|
|
|
|
|
|
|
## Create a decimal field
|
|
|
|
1. Click on `+` icon to the right of `Fields header`
|
|
|
|
2. On the dropdown modal, enter the field name (Optional).
|
|
|
|
3. Select the field type as `Decimal` from the dropdown.
|
|
|
|
4. Configure `Precision`- NocoDB supports upto 8 digits of precision.
|
|
|
|
5. Set default value for the field (Optional).
|
|
|
|
6. Click on `Save Column` button.
|
|
|
|
|
|
|
|
![image](/img/v2/fields/decimal.png)
|
|
|
|
|
|
|
|
:::info
|
|
|
|
- Default decimal precision is 1 digit
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Similar numerical fields
|
|
|
|
Following are the other numerical fields available in NocoDB, with some custom add-on features.
|
|
|
|
- [Number](010.number.md)
|
|
|
|
- [Percent](030.percent.md)
|
|
|
|
- [Currency](040.currency.md)
|