Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Short Scale Formatter

Security covered Under active development 33 sites

This module formats large integers in an integer field using shorthand notation like 'k' for thousand, 'm' for million, 'b' for billion, and 't' for trillion. It provides a more human-readable way to display large numbers.

This module provides an integer field formatter which outputs numbers with k as 1000 (thousand), m as million (1000000), b billion and t trillion. Being verbose there for anyone searching.

This is an implementation of the code found here so any fuzzy feelings or happy thoughts should be directed this-a-way:
http://stackoverflow.com/questions/4753251/how-to-go-about-formatting-12...

This module is for use in Harmony Forum project.

Here are some examples:

1000 => 1k
5821 => 5.8k
10500 => 10.5k
101800 => 101.8k
2000000 => 2m
7800000 => 7.8m
92150000 => 92.1m
123200000 => 123.2m
9999999 => 9.9m
2600000000 => 2.6b
1135060000000 => 1.1t

Ask your assistant about Short Scale Formatter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2024
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha1 Pre-release 11 Jul 1, 2026
1.0.0-alpha5 Pre-release 9–11 Jul 1, 2026
2.x-dev Dev Mar 22, 2025
1.0.0-alpha4 Pre-release 9–10 Mar 20, 2024