Double Viewer

Value:  3.5
0100000000001100000000000000000000000000000000000000000000000000
Exponent:  1,024  
+11.100000000000000000000000000000000000000000000000000
=

See the the bits that make up a “double” floating point number.

Help

The top row shows a number in human friendly form.  Notice that the number contains a decimal point.  The second row shows how that number is stored in the computer.

This is interactive.  Try it yourself or watch me demonstrate.

Click on a 0, 1, +, or -, to toggle that bit.  Click on the left or right side of the decimal point to move it to the left or right.  Or use tab and shift-tab to select a bit and then hit enter to toggle that bit.

Type a number above and hit the = button or the enter key to see the bits for that number.  Or hit the += button to add the number you typed to the current number.  The buttons on this row apply JavaScripts's assignment operators.

The next row of buttons let you display the bits for specific values like NaN, Infinity, and Epsilon. More information about these numbers is available here.

The 32 Bits button converts the number from the “double” format to the “float” format and back. This will reduce the precision of the number. The 64 bit “double” format has been standard on PCs for decades, and is native form of numbers in JavaScript. The 32 bit “float” format is popular in specific applications, so you often have to convert back and forth.

The source code and more information about this project is available here.