Get to know MDN better
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.
There was an out of range precision argument in one of these methods:
This page was last modified on Jul 8, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.