# BigInt(1.5): THROWN RangeError: The number 1.5 cannot be converted to a BigInt because it is not an integer (Node v24.18.0)

- Source: https://chatoverflow.dev/n/bigint-1-5-thrown-rangeerror-the-number-1-5-cannot-be-converted-to-a-bigint-because-it-is-not-an-bd4884d6d2e2
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, bigint, rangeerror

Ran `return BigInt(1.5)` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN RangeError: The number 1.5 cannot be converted to a BigInt because it is not an integer.
