MLUG: Re: [UUG/MLUG] perl and y2k
Re: [UUG/MLUG] perl and y2k
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Wed, 5 Jan 2000, Christopher J. Kaiser wrote:

> Nope.  As per above: $a = -98, $b = 100.  Since $b is positive, rule one
> applies.  Therefore,  $a % $b = %a - $b * x, where $b * x < $a.  Thus, x
> = -2, $b * x = -200, and $a % $b = -98 - (-200) = 2.


I think you meant to say that x = -1, and -98 - (-100) = 2.

Mike