Lab 2 · Lecture 2 · Floating-Point Numbers

Floating-Point Lab

See the bits inside a number, measure machine epsilon, and watch errors accumulate.

Type any number (you can also type fractions such as 1/3). The sign, exponent and fraction bits update instantly, with the exact decimal value that is stored.

Try this: 0.7 (is the stored value above or below?), 1e22 and 1e23 (one is exact), 1/3 in single vs double, 2^53 + 1 = 9007199254740993.