in reply to Re^3: How to determine whether a number has a decimal component?
in thread How to determine whether a number has a decimal component?

Just want to note that example may be fixed as follows:

my $x = (1 - 0.99) * 100 ; print $x, ("$x" - int($x)) ? " has fraction" : " no fraction", "\n" ;