Compare doubles against 0.0 instead of 0

The previous fix changed the code in the build/ directory by accident, not in the source directory.
Merge pull request #5 from mraleph/master

Compare doubles against 0.0 instead of 0