pyufunc.human_number#
- pyufunc.human_number(value, *, format_str='%.1f')#
Format a large number as human-readable text.
- Parameters:
value – Numeric value.
format_str – Numeric format string used by humanize.
Note
Source package:
humanize.Source repository: python-humanize/humanize
Source document: https://humanize.readthedocs.io/
Source license: MIT License.
Example
>>> human_number(1200000) '1.2 million'
- Returns:
Human-readable number.
- Return type: