Fixed the error cased by floating point. Most of the floating points was...

... handled as 0.0.

Fixed the bug reported at #17.
Since floating point values are too small, most of those values are handled as 0.0 and gave much impact on the result.