humanize
stringFormats numbers for human readability with comma separators
Syntax
humanize(number) Parameters
number (number) The number to format
Returns
string Human-readable formatted string
Examples
Input:
humanize(1234567) Output:
"1,234,567" Input:
humanize(1000) Output:
"1,000" Input:
9999999 | humanize Output:
"9,999,999" The humanize() function formats numbers with comma separators for improved readability. Converts numbers to strings with thousand separators.
Usage
Use humanize() for displaying large numbers in reports, dashboards, or user interfaces where readability is important.