Bound
Bases: ABC
Abstract base class for (lower or upper) Bounds on a float value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
float
|
The value of the Bound. |
required |
Source code in src/safeds/exceptions/_generic.py
value: float
property
¶
Get the concrete value of the Bound.
__init__(value)
¶
Initialize a Bound.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
float
|
The value of the Bound. |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If value is nan or if value is +/-inf and the Bound type does not allow for infinite Bounds. |