Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Latest commit

 

History

History
47 lines (39 loc) · 989 Bytes

File metadata and controls

47 lines (39 loc) · 989 Bytes

<-- Go back to README.md

Format

Shortens the number by dividing it through 1,000, 1,000,000, etc. and appending a letter at the end.
As an example 10000 becomes 10k.

Placeholder patterns

  • %formatter_number_shorten_<number>

Options

Option Description

number

The number to shorten.
Type: Number
Required? Yes

Examples

/papi parse me %formatter_number_shorten_999% -> 999
/papi parse me %formatter_number_shorten_1000% -> 1K
/papi parse me %formatter_number_shorten_10000% -> 10K
/papi parse me %formatter_number_shorten_100000% -> 100K
/papi parse me %formatter_number_shorten_1000000% -> 1M