numeric field does not save changed value - rounding issue

Created on 29 August 2025, about 2 months ago
Updated 31 August 2025, about 2 months ago

Problem/Motivation

numeric unformatted field does change value in the 1st non decimal
field.storage.node.field_espa_budget.yml
```
uuid: 0fb15f6a-800f-4a11-9398-3f28a5182966
langcode: und
status: true
dependencies:
module:
- node
id: node.field_espa_budget
field_name: field_espa_budget
entity_type: node
type: float
settings: { }
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
```

field.field.node.call.field_espa_budget.yml
```
uuid: 0a588576-4aa5-47bb-b730-eec6f418a081
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_espa_budget
- node.type.call
id: node.call.field_espa_budget
field_name: field_espa_budget
entity_type: node
bundle: call
label: ΠΡΟΫΠΟΛΟΓΙΣΜΟΣ
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: 0.0
max: null
prefix: ''
suffix: €
field_type: float
```

```
"field_espa_budget" => array:1 [▼
"x-default" => array:1 [▼
0 => array:1 [▼
"value" => "1703010"
]
]
]
```

Steps to reproduce

create the field as in the configuration ymls given

change value from 1703010 to 1703011 will rounded down (and so back) to 1703010
change value from 1703010 to 1703019 will be rounded up back to 1703020

Proposed resolution

none

🐛 Bug report
Status

Active

Version

10.0

Component

field system

Created by

🇬🇷Greece agelospanagiotakis

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024