[Bug #1721] NaN.divmod(NaN) $B$,Nc30$K$J$i$J$$(B

Bug #1721: NaN.divmod(NaN) e$B$,Nc30$K$J$i$J$$e(B
http://redmine.ruby-lang.org/issues/show/1721

e$B5/I<<Te(B: tadayoshi funaba
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2009-07-03 trunk 23945) [i686-linux]

1.8 e$B$G$Oe(B NaN.divmod(NaN) e$B$J$I$ONc30$K$J$C$F$$$^$7$?!#e(B

NaN.divmod(1) #=> [NaN, NaN]
NaN.divmod(NaN) #=> [NaN, NaN]
1.divmod(NaN) #=> [NaN, NaN]

NaN.div(NaN) e$B$J$I$ONc30$K$J$k$3$H$+$i!"e(Bdivmod
e$B$bNc30$K$J$k$h$&$K;W$$$^$9!#e(B

ruby 1.9.2dev (2009-07-03 trunk 23945) [i686-linux]
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:38726] [Bug #1721] NaN.divmod(NaN)
e$B$,Nc30$K$J$i$J$$e(B”
on Fri, 3 Jul 2009 22:01:47 +0900, tadayoshi funaba
[email protected] writes:

|1.8 e$B$G$Oe(B NaN.divmod(NaN) e$B$J$I$ONc30$K$J$C$F$$$^$7$?!#e(B

e$B$J$s$+!"$I$N%P!<%8%g%s$b0l4S@-$,0];}$5$l$F$$$J$$$h$&$K;W$$$^e(B
e$B$9!#$I$&$9$k$N$,$h$$$G$7$g$&$M!#e(B

      1.8     1.9

e$B2Ce(B NaN NaN
e$B8:e(B NaN NaN
e$B>he(B NaN NaN
e$B=|e(B NaN NaN
modulo NaN NaN
remainer NaN NaN
div e$BNc30e(B e$BNc30e(B
divmod e$BNc30e(B NaN

|NaN.div(NaN) e$B$J$I$ONc30$K$J$k$3$H$+$i!"e(Bdivmod e$B$bNc30$K$J$k$h$&$K;W$$$^$9!#e(B

e$B@0?t=|;;$@$1Nc30$K$9$kFCJL$NM}M3$r;W$$$D$+$J$$$N$G!“5U$Ke(Bdive$B$re(B
NaNe$B$K$9$k$Y$-$J$N$+$b$7$l$^$;$s!#K:$l$F$k$N$+$J$”!#e(Bdive$B$,Nc30e(B
e$B$rH/@8$9$k$h$&$K$J$C$?7P0^$r3P$($F$$$i$C$7$c$kJ}$O5o$^$9$+!)e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:38727] Re: [Bug #1721] NaN.divmod(NaN)
e$B$,Nc30$K$J$i$J$$e(B”
on Sat, 4 Jul 2009 01:42:18 +0900, Yukihiro M.
[email protected] writes:

| 1.8 1.9
|e$B2Ce(B NaN NaN
|e$B8:e(B NaN NaN
|e$B>he(B NaN NaN
|e$B=|e(B NaN NaN
|modulo NaN NaN
|remainer NaN NaN
|div e$BNc30e(B e$BNc30e(B
|divmod e$BNc30e(B NaN
|
||NaN.div(NaN) e$B$J$I$ONc30$K$J$k$3$H$+$i!"e(Bdivmod e$B$bNc30$K$J$k$h$&$K;W$$$^$9!#e(B
|
|e$B@0?t=|;;$@$1Nc30$K$9$kFCJL$NM}M3$r;W$$$D$+$J$$$N$G!“5U$Ke(Bdive$B$re(B
|NaNe$B$K$9$k$Y$-$J$N$+$b$7$l$^$;$s!#K:$l$F$k$N$+$J$”!#e(Bdive$B$,Nc30e(B
|e$B$rH/@8$9$k$h$&$K$J$C$?7P0^$r3P$($F$$$i$C$7$c$kJ}$O5o$^$9$+!)e(B

e$B0lHU?2$?$i!"@0?t2=$H$$$&9T0Y$,e(BFloatDomainErrore$B$rH/@8$5$;$F$$e(B
e$B$k$3$H$K5$$,$D$-$^$7$?!#e(Bdivmode$B$,Nc30$rH/@8$5$;$k$h$&$KD>$7$^e(B
e$B$9!#$9$_$^$;$s!#e(B