minIntDigits
MinIntDigits is a term used in numeric formatting to denote the minimum number of digits that should appear in the integer part of a formatted number. When the integer portion has fewer digits than this minimum, leading zeros are added to reach the specified width. If the integer part has more digits, all digits are shown, and no truncation occurs. The setting applies to the integer portion only and does not affect the fractional part or the sign.
In practice, minIntDigits is exposed by formatting libraries as a property on a formatter or via a
Examples illustrating the behavior with minIntDigits set to 3: the number 5 formats as 005, and -8
Notes and variants: different libraries may use different names for the concept, such as minimumIntegerDigits or