Fix issue #9 using a floating point comparison function
Fix issue #9: correctly compare floating point numbers