pretty_format_numerical_iterable
- pretty_format_numerical_iterable(input_values: Iterable[str | float], decimal_places: int | None = 3) Generator[str | float, None, None] [source]
Pretty format numerical values in an iterable of numerical values or strings.
- Parameters:
input_values (Iterable[str | float]) – Values that should be formatted.
decimal_places (int | None) – Number of decimal places a value should have, if None the original value will be used. Defaults to 3.
See also
- Yields:
str | float – Formatted string or initial value if
decimal_places
is None.