Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Number Abbrevation module provide field formatter and a twig filter to shorten
large numbers into abbreviations.
For example:
I have a number, e.g. 1000, 1230, 1500, 154000, 1500000, 1000000
And I want to format them with an abbreviation. i.e.
if it's a thousand, then 1k, 1.1k, 2k, 10k, 10.5k etc.
By enabling the module you will get a field formatter 'Abbrevate Number' for
`integer`, `decimal` and `float` field types.
You can also use a twig filter `abbrevate_number` for these fields field value.
### Service usage for other modules
`Drupal::service('number_abbrevation.abbrnumber')->abbrevateNumber($number)`
### Twig filter usage |abbrevate_number
`{{ field__value|abbrevate_number }}`
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Content display, Site structure
- Created by arunkasinathan on , updated



