Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Project information
- 29 sites report using this module
- By heylookalive on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
1.0.0-alpha4
released 20 March 2024
Works with Drupal: ^9.2 || ^10
✓ Recommended by the project’s maintainer.
Install: