no-loss-of-precision
Configuration
rslint.config.ts
Rule Details
Disallow number literals that lose precision at runtime when converted to a JavaScript Number.
JavaScript numbers are stored as double-precision floating-point values. If a number literal contains more significant digits than the runtime value can preserve, the literal may evaluate to a different number than the source text suggests.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
This rule has no options.