hfloat
Convert float to value suitable for humans.
def hfloat(
f: float,
p: int = 5
) - > int | string
Convert float to value suitable for humans.
Parameters
| Name | Type | Description |
|---|---|---|
| f | float | The floating point number to be converted. |
| p | int = 5 | The maximum number of decimal places to include in the formatted string output. |
Returns
| Type | Description |
|---|---|
| `int | string` |