craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 637 forks source link

Bugfix/16181 number field amends #16192

Closed i-just closed 3 days ago

i-just commented 3 days ago

Description

In v4, if you type 5.6 into a number field which has decimals set to zero, the value stored in the DB is 5; the value displayed in the control panel and on the front end is also 5 (that’s because the decimals setting affected the type of column the data was saved to). In v5, it’s

Since we no longer rely on column types, normalisation should take care of ensuring the field’s decimals setting is respected.

Related issues

16181