Module Description
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.
Similar modules leading_zeros_formatter advanced_number_format
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.
Similar modules leading_zeros_formatter advanced_number_format
Module Link
Project Usage
159
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of displaying decimal digits only if they exist in a decimal field formatter for Drupal.
Data Name
human_decimal