diff --git a/container_app_conf/entry/float.py b/container_app_conf/entry/float.py
index 6ddb2ca..ee85223 100644
--- a/container_app_conf/entry/float.py
+++ b/container_app_conf/entry/float.py
@@ -17,6 +17,7 @@
 #  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 #  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 #  SOFTWARE.
+from py_range_parse import Range
 
 from container_app_conf import ConfigEntry
 
@@ -24,6 +25,11 @@ from container_app_conf import ConfigEntry
 class FloatConfigEntry(ConfigEntry):
     _example = "3.1415926535"
 
+    def __init__(self, key_path: [str], example: any = None, description: str or None = None, default: any = None,
+                 none_allowed: bool = None, range: Range = None):
+        self.range = range
+        super().__init__(key_path, example, description, default, none_allowed)
+
     def _value_to_type(self, value: any) -> float or None:
         """
         Tries to permissively convert the given value to a float.
@@ -31,9 +37,13 @@ class FloatConfigEntry(ConfigEntry):
         :return: the parsed float value
         """
         if isinstance(value, str) and '%' == value[-1]:
-            return float(value[:-1]) / 100.0
+            parsed_value = float(value[:-1]) / 100.0
         else:
-            return float(value)
+            parsed_value = float(value)
+
+        if self.range is not None and parsed_value not in self.range:
+            self._raise_invalid_value(value)
+        return parsed_value
 
     def _type_to_value(self, type: any) -> any:
         return float(type)
diff --git a/container_app_conf/entry/int.py b/container_app_conf/entry/int.py
index 3e50310..beb6ad1 100644
--- a/container_app_conf/entry/int.py
+++ b/container_app_conf/entry/int.py
@@ -17,6 +17,7 @@
 #  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 #  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 #  SOFTWARE.
+from py_range_parse import Range
 
 from container_app_conf import ConfigEntry
 
@@ -24,13 +25,21 @@ from container_app_conf import ConfigEntry
 class IntConfigEntry(ConfigEntry):
     _example = "42"
 
+    def __init__(self, key_path: [str], example: any = None, description: str or None = None, default: any = None,
+                 none_allowed: bool = None, range: Range = None):
+        self.range = range
+        super().__init__(key_path, example, description, default, none_allowed)
+
     def _value_to_type(self, value: any) -> int or None:
         """
         Tries to permissively convert the given value to an int.
         :param value: the value to parse
         :return: the parsed int value
         """
-        return int(value)
+        parsed_value = int(value)
+        if self.range is not None and parsed_value not in self.range:
+            self._raise_invalid_value(value)
+        return parsed_value
 
     def _type_to_value(self, type: any) -> any:
         return int(type)

limit range of IntConfigEntry using range parameter
Add a constructor parameter to `IntConfigEntry` and `FloatConfigEntry` to limit valid input to a specific range.
diff --git a/tests/entry_test.py b/tests/entry_test.py
index 820d586..456e6d6 100644
--- a/tests/entry_test.py
+++ b/tests/entry_test.py
@@ -53,18 +53,19 @@ class EntryTest(EntryTestBase):
         self.assert_input_output(config_entry, input_output)
 
     def test_int_entry(self):
-        config_entry = IntConfigEntry(key_path=["int"])
+        config_entry = IntConfigEntry(key_path=["int"], range=Range(-5, 5))
         input_output = [
             ("5", 5),
             (5, 5),
             ("-3", -3),
-            (-3, -3)
+            (-3, -3),
+            (-6, ValueError)
         ]
 
         self.assert_input_output(config_entry, input_output)
 
     def test_float_entry(self):
-        config_entry = FloatConfigEntry(key_path=["float"])
+        config_entry = FloatConfigEntry(key_path=["float"], range=Range(-10.0, 10))
         input_output = [
             ("5", 5.0),
             (5, 5.0),
@@ -72,7 +73,8 @@ class EntryTest(EntryTestBase):
             (-3.0, -3.0),
             (1.2, 1.2),
             ("1.2", 1.2),
-            ("3%", 0.03)
+            ("3%", 0.03),
+            (-20.0, ValueError)
         ]
 
         self.assert_input_output(config_entry, input_output)

pip install -e .
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/markusressel/container-app-conf.git@64bf901676d19ecae5a78308d89c057e3b511a78#egg=container_app_conf
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pluggy==1.0.0
py==1.11.0
py-range-parse==1.0.5
pyparsing==3.1.4
pytest==7.0.1
python-dateutil==2.9.0.post0
pytimeparse==1.1.8
PyYAML==6.0.1
six==1.17.0
toml==0.10.2
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: container-app-conf
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - py-range-parse==1.0.5
      - pyparsing==3.1.4
      - pytest==7.0.1
      - python-dateutil==2.9.0.post0
      - pytimeparse==1.1.8
      - pyyaml==6.0.1
      - six==1.17.0
      - toml==0.10.2
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/container-app-conf

tests/entry_test.py::EntryTest::test_float_entry tests/entry_test.py::EntryTest::test_int_entry
tests/entry_test.py::EntryTest::test_bool_entry tests/entry_test.py::EntryTest::test_date_entry tests/entry_test.py::EntryTest::test_directory_entry tests/entry_test.py::EntryTest::test_file_entry tests/entry_test.py::EntryTest::test_range_entry tests/entry_test.py::EntryTest::test_timedelta_entry
container_app_conf/entry/float.py container_app_conf/entry/int.py
container_app_conf/entry/float.py container_app_conf/entry/int.py