> Would it be good to say exactly what type of rounding this is?  What
> is 19 / 5?  How about 19 / -5?  FWIW, here's what Perl 
> currently thinks:
> 
>   19 / 5 =  3
> (-19)/ 5 = -3
>   19 /-5 = -3
> (-19)/-5 =  3

On way to solve this is to provide two sets of division operators, ie
div/mod vs quo/rem, one of them is mapped to '/'/'%', and the other
maps to regular method names.

Hong

Reply via email to