Skip to content
JS
JavaScript error

RangeError

The JavaScript exception "precision is out of range" occurs when a number that's outside of the allowed range was passed into toExponential, toFixed, or toPrecision.

Reference entryJavaScriptFetched
RangeError: toExponential() argument must be between 0 and 100 (V8-based & Safari)
As listed by MDN Web Docs
RangeError: toFixed() digits argument must be between 0 and 100 (V8-based & Safari)
As listed by MDN Web Docs
RangeError: toPrecision() argument must be between 1 and 100 (V8-based & Safari)
As listed by MDN Web Docs
RangeError: precision -1 out of range (Firefox)
As listed by MDN Web Docs
Category
RangeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.