This module allows you to convert existing integer fields to decimal fields without losing data. It also plans to support converting integer fields on other entity types besides nodes.
Converting a field with data associated to it from an integer to a decimal is not currently supported in Drupal for obvious reasons. This module will allow site builders to convert node fields of type integer with data associated with them to type decimal while maintaining the data integrity. Another similar module worth considering is Precision Modifier
How to use Integer to Decimal module
Once the module has been downloaded and enabled, the following steps are required in order to convert an integer field with data associated to it to a decimal field:
- select the manage fields operation of the desired content type
- select the edit operation for the desired integer field with data associated to it.
- select the 'Field Settings' tab for the selected field. (The option to convert from integer to decimal is only available if the field selected has data associated with it.)
- check the checkbox (Enable integer to decimal conversion)
- from the available drop downs select the desired precision and scale
- save the field settings
Roadmap
This module currently supports field types associated with nodes, but we plan to support integer-to-decimal conversion of fields on other entity types as well.
Ask your assistant about Integer to Decimal
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.x-dev | Dev | 10–11 | Jul 23, 2024 |