Version:

Acquia Cohesion renames to Site Studio from version 6.2. Tell me more.

Decimal values are not rounding correctly

This is due to the value of the serialize_precision PHP setting.

Inputting a decimal value, in something like a CSS value, can be saved with multiple decimal places rather than what the user input. The value displays correctly in the UI, but when exporting the configuration the value has multiple decimal places, this is due to the serialize_precision PHP setting. This can cause unnecessary conflicts with configuration when exported and committing to code.

It is recommended that environments where configuration is synced that the same serialize_precision value is set.

The PHP default value of serialize_precision prior to 7.1.0 was 17, on later versions of PHP the default is now -1. The value of the setting can be seen in your Drupal sites Status report. It can be overridden in your settings.php or php.ini. 
 

DX8 knowledge base icon

Frequently asked questions

Get instant answers to common questions. Available online 24/7.

Find answers

Raise a ticket icon

Raise a support ticket

To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

Raise support ticket

Acquia

Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.