At 10:49 AM 10/9/2001 -0400, Andy Dougherty wrote:
>In perl.perl6.internals, you wrote:
> >At 09:53 AM 10/8/2001 -0400, Gregor N. Purdy wrote:
> >>The thing that's making my brain itch right now is div. We cannot afford
> >>to do complicated things to the standard integer division, but you will
> >>have noticed that the nicer mod is based on floor-div (where C does
> >>truncate-div). Having floor-div (and maybe even ceiling-div) around to
> >>build other things out of would be nice (but maybe not nice enough to
> >>allocate more builtin ops to -- maybe we could have our first oplib
> >>contain an expanded set of numerical ops. I'd like to start thinking
> >>and talking about oplibs soon).
> >
> >Leave division alone at the moment. If someone needs something fancy, they
> >can go to full PMC support and code whatever division method they like.
>
>Fine, but for future reference, if you're going to have floor(),
>you'll almost certainly want to have ceil().  Otherwise it's sometimes
>difficult to handle negative values appropriately.

Fair enough. OK, ceil's in too.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to