Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Remove Trailing Zeros

Security covered Maintenance fixes only 217 sites

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.

Drupal 8–11

Ask your assistant about Remove Trailing Zeros

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
2.0.4 Stable 8–11 Feb 7, 2025
2.0.3 Stable 8–10 Aug 31, 2023