View Categories

Avoid Declaring Integers Over 15 Digits

Impact Area

Manageability

Severity

High

Affected Element

Lightning

Rule ID #

SF-0071

Impact #

In JavaScript, integers (numbers without a period or exponent notation) are only accurate up to 15 digits, so using integres with more than 15 digits will lead to unwanted results.

Remediation #

Use exponents to support large number constants.

Time to fix

45 min

References #

See the PMD documentation article: InnaccurateNumericLiteral.

Powered by BetterDocs