Bug fix

When comparing numbers, changed `invtval` to `floatval` to properly
evaluate numbers with decimals.