Skip to main content

BigInt

A BigInt variable holds an arbitrary-precision integer — useful once a value can exceed JavaScript's safe integer range (Number.MAX_SAFE_INTEGER, 2^53 - 1). The default-value text you type into the Variables panel must be a whole number with no decimal point — BigInt has no fractional representation, so typing something like 1.5 is rejected with a clear message.

Compiles to

let bigCounter = 123456789012345n;

The n suffix that marks a JS numeric literal as a BigInt is added automatically at compile time — you just type the digits.

Get Variable / Set Variable

A Get bigCounter node reads it back; a Set bigCounter node assigns a new value and continues:

Get Variable

Set Variable

The Set node's "Value" pin takes the same plain-digits text as the default-value field — an unwired literal there gets the same n suffix applied automatically.

Use case

  • IDs beyond the safe integer range: A counter, a database ID, or a snowflake-style identifier that can legitimately grow past what a regular JS number can represent exactly.