Changed to Bit shifts.

Shorter, and more faithful to the original.
Added semicolon & Scientific notation.