Fix implementation for negative floating point numbers.
* Fixes #11
* Fixes the-gss/engine#80