What are php precision recommended requirements and testing procedures for non-default php precision scenarios?

Created on 1 August 2024, 6 months ago
Updated 2 August 2024, 6 months ago

Problem/Motivation

I need large decimal numbers. Sometimes much larger than the default php precision of 14.
There are numerous use cases in scientific fields where really large numbers are important.

During testing of patches for this issue Simple decimals fail to pass validation πŸ› Simple decimals fail to pass validation Needs work with larger php precision than 14 (e.g. 24 or 32) (which is no problem for the database back end) I realized that for some modules simple things like a version comparison ( PHP version comparison fails with higher precision β†’ ) does not treat floats correctly.

So I came to wonder:Is it safe to run Drupal with higher (than the default php precision of 14) at all?

I searched for issues with a relation to precision problems. I will attach and comment them in the coming days.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024