Helper Functions
Utils
human_readable(num, precision=2, *args)
Converts large numeric values(>10^3) into human readable strings.
ie. 1000 -> 1k,
1000000 -> 1M, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num |
Union[float, int]
|
Numeric value |
required |
precision |
int
|
Rounding precision, by default 2 |
2
|
Returns:
| Type | Description |
|---|---|
str
|
Human readable numeric string |