CADETProcess.dataStructure.parameter.Float

CADETProcess.dataStructure.parameter.Float#

class CADETProcess.dataStructure.parameter.Float(*args: Any, ty: type | None = None, **kwargs: Any)[source]#

Bases: Typed

Parameter descriptor constrained to float values.

Notes

This class also supports casting integers and numpy numbers to floats.

cast_value(value: Any) float | Any[source]#

Convert integers and numpy numbers to float.

Parameters:
valueAny

Value to be cast.

Returns:
Union[float, Any]

Float equivalent if value is an integer or numpy number; otherwise, the original value.

ty#

alias of float