I don't know how I've never gotten around to making this wish:  Sure
would be nice to have a method that returned both the integer quotient
and the remainder without having to do the division twice.  Like this but
in a single operation:

 x~quotient  = dividend %divisor
 x~remainder = dividend//divisor

In the program at hand, I'm just factoring, so I only have to divide the
second time after I've found a factor.  But in cases where you need to
process a lot of nonzero remainders, it'd be nice not to have to divide
again to get the quotient.

¬R




_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to