Float
Represents a single-precision 32-bit IEEE 754 floating-point number. This datatype is used as input or output wherever a scalar floating-point value is required in the Telekinesis ecosystem.
Field
Required
| Field | Type | Description |
|---|---|---|
value | float or int | The numeric value; stored as 32-bit float (Python float). |
Optional
None.
Example
From the datatypes examples:
python
from datatypes import datatypes
from loguru import logger
# ------------------------------------------------
# 1. Create Float instance
# ------------------------------------------------
float_val = datatypes.Float(3.14)
# ------------------------------------------------
# 2. Access value
# ------------------------------------------------
logger.info("Float value={}", float_val.value)
