Fix for 32-bit floats. Closes #7.