Loading

Digit Length Limits for Number Fields in Salesforce

Publiseringsdato: Jan 20, 2026
Beskrivelse

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
Løsning

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.

Knowledge-artikkelnummer

000386249

 
Laster
Salesforce Help | Article