Free tool · Dev corner

What a double really stores

Type an amount or a rate: the tool shows the exact value a Java double keeps in memory, what three ways of rounding it give, and the error that builds up when you add it thousands of times. JavaScript numbers are the same IEEE 754 doubles as Java's, so the results are your JVM's.

The calculation runs in your browser: nothing is sent or stored.

Going further

Unexplained differences in your calculations?

Our legacy diagnostic finds fragile calculations and misplaced rounding in your applications.

The diagnostic All tutorials

Worth a look