From: matz@... (Yukihiro Matsumoto) Date: 2000-07-04T12:15:45+09:00 Subject: [ruby-talk:03790] Re: Kernel.rand Hi, In message "[ruby-talk:03789] Re: Kernel.rand" on 00/07/03, Dave Thomas writes: |I can beat your bad news ;-) | | ruby -e '(-11).divmod(3.5)' | -e:1: [BUG] Segmentation fault | |This is with the latest CVS Oops, embarassing typo. |I think it might be time to revert back to the old behavior, though... No, the old behavior was inconsistent. The options are * Python's way (modulo) * Current behavior * Current behavior + modulo What else? matz. --- numeric.c 2000/07/03 05:46:34 1.13 +++ numeric.c 2000/07/04 03:13:54 @@ -355,4 +355,3 @@ { - double fy; - VALUE div, mod; + double fy, div, mod;