Loading

Number and Percent Fields Display Full Stored Decimal Value During Edit in Lightning Experience

Date de publication: May 14, 2026
Description

In Salesforce Lightning Experience, Number and Percent data type fields use the Double primitive data type for storage. This means that more decimal precision is stored in the database than what is displayed in the UI after saving.
When a user edits a Number or Percent field, the UI shows the full stored value — not the rounded display value. This is expected behavior.

Example 1: Number Field

  • Field configuration: Number(3, 0) — displays no decimal places
  • Value entered: 10.123
  • Displayed after save: 10
  • Value shown during edit: 10.123 (full stored value)

Example 2: Percent Field

  • Field configuration: Percent(3, 2) — displays 2 decimal places
  • Value entered: 25.5678
  • Displayed after save: 25.57
  • Value shown during edit: 25.5678 (full stored value)
Résolution

Both Number and Percent field types store values using the Double primitive data type in Salesforce. The "Decimal Places" setting on the field controls how many decimal places are displayed after saving — it does not restrict or round the actual stored value. When a record is opened for editing, the full stored Double value is shown in the input field.
This is working as designed in Salesforce Lightning Experience.

Version Applicability

This behavior applies to orgs on Spring '21 and later releases, in Lightning Experience only. Salesforce Classic may behave differently.

Ressources supplémentaires

Primitive Data Type. 

Numéro d’article de la base de connaissances

000389045

 
Chargement
Salesforce Help | Article