Skip to content
JS
JavaScript error

RangeError

The JavaScript exception "x can't be converted to BigInt because it isn't an integer" occurs when the BigInt() function is used on a number that isn't an integer.

Reference entryJavaScriptFetched
RangeError: The number 1.5 cannot be converted to a BigInt because it is not an integer (V8-based & Firefox)
As listed by MDN Web Docs
RangeError: Not an integer (Safari)
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.273Z.