Fix for 32-bit floats. Closes #7.
Merge pull request #8 from ajdawson/float32-fix

Fix for 32-bit floats. Closes #7.