Adjust the power to your likes.print "The numbers $foo and $bar are significant different!" if (abs($foo - $bar) >= (10**-10));
Update: Of course it should be >=, thanks Eureka_sg.
Somehow I seemed to have thought about using unless but wrote
if instead...
--
use signature;
signature(" So long\nAlfie");
In reply to Re: Strange (rounding?) problem
by alfie
in thread Strange (rounding?) problem
by gildir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |