develooper Front page | perl.perl6.internals | Postings from September 2001

Re: [PATCH] "Fix" mod op

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
September 24, 2001 11:57
Subject:
Re: [PATCH] "Fix" mod op
Message ID:
5.1.0.14.2.20010924145436.023d3830@pop.sidhe.org
At 02:25 PM 9/24/2001 -0400, Gregor N. Purdy wrote:
>Fortunately, there is a perfectly rational definition of the mod(x,y)
>function over the full domains of x and y, and even for x and y that
>are not integral. This can be found in the book Concrete Mathematics,
>Second Edition by Graham, Knuth and Patashnik (Section 3.4, pages
>81-85.

Keen, I'd forgotten that was in there. I'd say toss the other mods and go 
with this as our sole modulus operator, assuming that it behaves the same 
as C's % for positive integers.

Once the feature freeze is over this can go in.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About