RISHIPAL SINGH · LEARNING LAB

Floating-Point Precision and Rounding Explorer

Floating-point formats approximate many real numbers with finite binary precision, so some decimal fractions cannot be represented exactly. Experiment with a small example and see each step update.

Repeatedly adding 0.1 may yield a value slightly different from 1 because 0.1 has no finite binary expansion.

Read the related guide · · Bookmark this unique URL with Ctrl/Cmd+D.