|
|
| more useful options | |
| PerlMonks |
Re: Negating a numberby Illuminatus (Curate) |
| on Mar 04, 2009 at 17:24 UTC ( #748246=note: print w/ replies, xml ) | Need Help?? |
|
What is right, indeed... Depends on what you are trying to do. Please read 2's compleent. If you are doing ordinary arithmetic, then what you are doing is probably what you want. If you are doing something like calculating a TCP checksum, then the other method is closer to (but not exactly) what you want.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||