Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Human Decimal Formatter

Security covered Under active development 632 sites

This module provides a decimal field formatter that displays only the significant digits of a number, cleaning up trailing zeros. For example, 3.00 would display as 3, while 3.23 would remain as 3.23.

About

A tiny module that provides a simple decimal field formatter that displays decimal digits only if exist (because humans are not computersTM).

For example 3.00 will render as 3 (no digital digits) but 3.23 will render as 3.23 etc.

Initially I found it helpful to propose this formatter on core but until this happens it would be better to add this here as a separate module and get feedback from the community.

Scaffolding was made with Drupal Console.

Usage

Just install and use the formatter for any decimal number field you want to. There are no special settings for the formatter.

Drupal 8–11

Ask your assistant about Human Decimal 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

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2023
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.4 Stable 8–11 Mar 2, 2026
3.0.3 Stable 8–11 Mar 18, 2024
3.0.x-dev Dev 8–11 Mar 18, 2024
3.0.2 Stable 8–10 May 29, 2023