A good habit to get into (i think) is not to use equality operator at all for numerical condition testing, especially so for floating point numbers. instead test for $i<1.7
only use equality sparingly in conditionals altogether, and program defensively. Perl is not a strongly typed language, which gives flexibility, but you do need to be a bit careful sometimes. And floating point math is what it is, an approximation of decimal numbers.