in reply to Perl compare

Numeric literals in Perl and any other programming language I've ever heard of use decimal dots, not commas. Irrespective of locale settings.

if ($number4 == 1.2) {

Jenda
Enoch was right!
Enjoy the last years of Rome.