Fix parsing of positive decimal values.

Change conditional such as that it does not rely on zero evaluating
to false. In Ruby, any value that is not nil or false evaluates to
true.
Merge pull request #2 from darnaut/master

Fix parsing of positive decimal values.