Front page | perl.perl6.internals |
Postings from February 2002
RE: Initial bignum pdd
Thread Previous
|
Thread Next
From:
Hong Zhang
Date:
February 26, 2002 10:26
Subject:
RE: Initial bignum pdd
Message ID:
400CE9390E334A4393CEECDD6863120A01A107CF@ussccm003.corp.palm.com
> 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
Thread Previous
|
Thread Next