Skip to main content

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

NameTypeDescription
ffloatThe floating point number to be converted.
pint = 5The maximum number of decimal places to include in the formatted string output.

Returns

TypeDescription
`intstring`