Loading

Digit Length Limits for Number Fields in Salesforce

Fecha de publicación: Jan 20, 2026
Descripción

This article explains how digits are counted in Number fields when both integer and decimal values are used.

In Salesforce, Number fields are defined by two key settings:

  • Length (total number of digits)
  • Decimal Places (number of digits to the right of the decimal point)

A common question is: “When a number includes decimals, how are the total digits calculated?”

The total digit count includes all digits, both before and after the decimal point. The decimal separator itself is not counted.

For example:

  • A value like 123.45 contains 5 digits (not 6)
  • A field defined with Length = 5 and Decimal Places = 2 can store this value
Solución

This section explains the digit limits for Number fields in Salesforce and how Length and Decimal Places must be configured together.

Digit Limits

  • Number fields can store up to a maximum of 18 digits total
  • This total includes both integer and decimal digits

Field Configuration Rules

  • The sum of Length and Decimal Places must not exceed 18 digits
  • The Length value must be at least 1

Decimal Limits

  • Because Length must be at least 1, the maximum number of decimal places that can be configured is 17 digits

Additional Information

When designing number fields, ensure the configuration supports the largest expected values. For example, financial or scientific data may require careful balancing between integer size and decimal precision.

Número del artículo de conocimiento

000386249

 
Cargando
Salesforce Help | Article