Skip to main content

Try it Live

Run Uint examples in the interactive playground

    Number Limitations

    JavaScript numbers are 64-bit floating point (IEEE 754 double precision):
    Only use numbers within safe integer range: -2^53 + 1 to 2^53 - 1For larger values, use BigInt instead.

    Safe Integer Range

    Use BigInt for Large Values

    Validation

    Integer Check

    Special Values

    Negative Values

    Usage Patterns

    Small Constants

    Array Indices

    Type Conversion

    Best Practices

    Prefer BigInt for Ethereum Values

    Check Safe Integer Range

    See Also