[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Implementation of %
- From: Chris Marrin <chris@...>
- Date: Thu, 19 May 2005 07:39:35 -0700
Gavin Wraith wrote:
In message <428C6822.1070407@gimp.org> you wrote:
On the other hand changing the behaviour of math.mod
to be a modulus instead of remainder operation could
subtly break some old code. Ho hum.
The remainder theorem can be articulated in different
ways...
Again, forgive my newbie impertinence, but mathematics aside, shouldn't
math.mod and '%' return the same result? Especially since '%' provides a
performance improvement? That way you can replace math.mod with '%' and
get a performance boost. And since '%' is new, shouldn't it do what
math.mod does, rather than vice versa?
--
chris marrin ,""$,
cmarrin@arch.sel.sony.com b` $ ,,.
(408) 955-3049 mP b' , 1$'
Sony ,.` ,b` ,` :$$'
,|` mP ,` ,mm
,b" b" ,` ,mm m$$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :$1
b$` ,$: :,`` |$$ ,` $$` ,|` ,$$,,`"$$ .` :$|
b$| _m$`,:` :$1 ,` ,$Pm|` ` :$$,..;"' |$:
P$b, _;b$$b$1" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'