pyrtma.validators.Float
- class Float(*args)[source]
Bases:
FloatValidatorBase
32-bit Float validator class
Methods
Validate multiple float values
Validate a float value
- validate_many(value)
Validate multiple float values
- Parameters:
value (Iterable[float]) – Iterable of floats to validate
- Raises:
TypeError – Wrong type
ValueError – Value cannot be precisely represented with this datatype
- validate_one(value)
Validate a float value
- Parameters:
value (float) – Float value
- Raises:
TypeError – Wrong type
ValueError – Value cannot be precisely represented with this datatype