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" ;
In reply to Re^4: How to determine whether a number has a decimal component?
by zwon
in thread How to determine whether a number has a decimal component?
by Xenofur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |