SheepDev

Integer range

Integer range lets you calculate signed and unsigned integer ranges and required bit width in your browser.

Integer range

⌂ Inputs and results stay in this browser and are not automatically stored or sent.

Settings
Waiting for input

Input

Output

Waiting for input

Complete text result

How to use

Set width and signedness to inspect an integer type's range, or enter a value when finding the required bit count.

Compare minimum and maximum with expected growth. Signed and unsigned ranges differ, and a value within range still requires compatible precision in the language and storage system.

Examples

64

Principles and limits

Each input is limited to 1,048,576 bytes, output to 33,554,432 bytes, and processing to 5,000 ms. Input is never silently truncated.

Guides

Related tools

Numbers, units, and bits

Radix converter

Radix converter lets you convert signed big integers between bases 2 and 36 without floating-point loss in your browser.

Numbers, units, and bits

Bitwise calculator

Bitwise calculator lets you calculate AND, OR, XOR, NOT, and shifts with explicit width and signedness in your browser.