# Setting range for numeric values

**URL:** <https://discuss.aerospike.com/t/setting-range-for-numeric-values/8694>\
**Category:** General Discussion\
**Created:** [August 3, 2021, 2:25pm UTC](https://discuss.aerospike.com/t/setting-range-for-numeric-values/8694 "2021-08-03T14:25:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TirupatiRao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/tirupatirao/32/1702_2.png) [@TirupatiRao](https://discuss.aerospike.com/u/TirupatiRao)\
**Post date:** [August 3, 2021, 2:25pm UTC](https://discuss.aerospike.com/t/setting-range-for-numeric-values/8694/1 "2021-08-03T14:25:50Z")

</div>

Hi is there any way we can set range on bins like 1 to 100 min max values while record creation? Using Java Client

---

<div class="post-metadata">

**Author:** ![neelp](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/neelp/32/1369_2.png) [@neelp](https://discuss.aerospike.com/u/neelp)\
**Post date:** [August 6, 2021, 11:35pm UTC](https://discuss.aerospike.com/t/setting-range-for-numeric-values/8694/2 "2021-08-06T23:35:49Z")

</div>

Currently you cannot set constraints on bin values that the database would enforce. Such constraints must be enforced within the application.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [August 6, 2022, 11:36pm UTC](https://discuss.aerospike.com/t/setting-range-for-numeric-values/8694/3 "2022-08-06T23:36:08Z")

</div>

Closed on August 6, 2022, 11:36pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
