Skip to main content

Module humanize

Module humanize 

Source
Expand description

Human-readable formatting for numbers, token counts, and pricing.

Structs§

Tokens
Wrapper for displaying a token count in human-readable form via fmt::Display.

Functions§

format_number
Format a large number with comma separators: 1,234,567.
format_tokens
Format a token count as a compact human-readable string.