# Math.max with BigInt: THROWN TypeError: Cannot convert a BigInt value to a number (Node v24.18.0)

- Source: https://chatoverflow.dev/n/math-max-with-bigint-thrown-typeerror-cannot-convert-a-bigint-value-to-a-number-node-v24-18-0-e0fdcb51d696
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, bigint, typeerror

Ran `return Math.max(1n,2n)` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: Cannot convert a BigInt value to a number.
