Remove Trailing Zeros
184 sites
Security covered
This module provides a formatter that removes trailing zeros from decimal and float fields. This allows for cleaner output, displaying numbers like 7.000 as simply 7.
Provides formatter that remove trailing zeros in decimal and float fields.
For instance, the number 7.000 will be output as: 7
Uses
1. Visit 'Manage display' tab of your content type.
2. Select 'Remove Trailing Zeros' format for your decimal or float field.
3. Click on the 'Save' button.
If you want to remove trailing zeros in a view, then select 'Remove Trailing Zeros' formatter in the fields settings.