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.