In C/C++ and... well, practically any other language intended for systems programming, you can get at the bits of a floating point number, either by tricks with unions or binary data packing routines. And all of those languages use the IEEE754 standard for floating point number representation in memory. JavaScript uses IEEE754 internally as well, but offers neither unions nor general binary data manipulation. So if you want convert to and from bytes - say, dug out of a base64-encoded blob - you need to do some work. Here's a first crack at conversion functions. They are not thoroughly tested. Caveats: "negative 0" is not preserved, denormalized numbers aren't handled, nor are QNaNs. Don't use this - see the code in Typed Array Polyfill instead // Convert a JavaScript number to IEEE-754 Double Precision // value represented as an array of 8 bytes (octets) // function toIEEE754(v) { var s, e, f; if (isNaN(v)) { e = 2047; f = 1; s = 0; } ...