Integer Overflow Explained With 8-Bit Examples
Integer overflow happens when a result does not fit its type. 8-bit wraparound on live bits, plus what C, JavaScript and Python did in our tests.
BitStrip counter
Category
Number systems, data units and character encodings, explained with values you can change and check against our converters.
Integer overflow happens when a result does not fit its type. 8-bit wraparound on live bits, plus what C, JavaScript and Python did in our tests.
BitStrip counter
A gigabyte is 1,000,000,000 bytes; a gibibyte is 1,073,741,824. Why a 1 TB drive shows as 931 GB in Windows, and a converter that does both.
Calc gb-gib
A gigabyte is 1,000 megabytes. What that means for photos, songs and video, with the bitrate math behind each size and a calculator for how many files fit.
Calc files-fit
A decimal place-value chart: tenths, hundredths and thousandths, how to expand 305.247, and how the same idea works in binary with halves and quarters.
Calc place-value
A powers of 2 chart from 2⁰ to 2⁶⁴, why each extra bit doubles the range, and how byte, IPv4 and integer limits fall out of the same table.
PowerSlider
Read any binary number by adding the place values of its 1 bits, then read binary code as text one byte at a time. Interactive bits and a practice quiz.
BitStrip
XOR outputs 1 when its inputs differ; XNOR outputs 1 when they match. Both truth tables, a two-switch demo, three-input parity and bitwise code examples.
TruthTable
ASCII is a 7-bit code that maps 128 characters to the numbers 0–127. Trace the letter A through decimal, hex and binary, and see where UTF-8 differs.
Calc ascii-trace
How two’s complement stores negative numbers: invert and add one, read the top bit as negative, and see signed ranges, sign extension and overflow live.
BitStrip
A bit is one binary digit; a byte is 8 bits. Why internet speeds use Mb and file sizes use MB, with a calculator that turns Mbps into real download times.
Calc bit-byte
Binary-coded decimal stores each decimal digit in its own 4 bits. 8421 BCD vs plain binary, invalid codes, a real-time clock register and a converter.
Calc bcd
Endianness is the byte order of multi-byte values. One 32-bit number stored both ways, a hex dump from a real machine, and why network order is big endian.
Calc endian