# Size of Numeric/Integer fields

**URL:** https://discuss.tryton.org/t/size-of-numeric-integer-fields/6930
**Category:** Developer
**Created:** [January 30, 2024, 2:20pm UTC](https://discuss.tryton.org/t/size-of-numeric-integer-fields/6930 "2024-01-30T14:20:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ibtissem](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/i/90ced4/32.png) [@Ibtissem](https://discuss.tryton.org/u/Ibtissem)
#### Post date: [January 30, 2024, 2:20pm UTC](https://discuss.tryton.org/t/size-of-numeric-integer-fields/6930/1 "2024-01-30T14:20:46Z")

</div>

Hello community,

how can I set the size of an Ineteger field to 3 for example ?

The size attribute cannot be applied to Integer fields

Also I tried with Numeric digits=(3,0) but it does not take that into consideration.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 30, 2024, 3:21pm UTC](https://discuss.tryton.org/t/size-of-numeric-integer-fields/6930/2 "2024-01-30T15:21:57Z")

</div>

Indeed the digits is only enforced for decimal (we should probably convert it into a single integer). So if you want to limit the value of an integer, you can just apply a domain on it like `[('field', '>', 0), ('field', '<', 1000)]`.
