Loading

the Digit Length of Number Fields

Дата публикации: Jan 20, 2026
Описание

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
Решение

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.

Дополнительные ресурсы

Custom Field Types

Номер статьи базы знаний

000386249

 
Загрузка
Salesforce Help | Article