Cheers,sub same_sign { abs($_[0] + $_[1]) == abs($_[0]) + abs($_[1]); }
In reply to Re: Seeing if two numbers have the same sign
by syphilis
in thread Seeing if two numbers have the same sign
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |