#5321
=1B$B$O=1B(B
http://redmine.ruby-lang.org/issues/5321
Introducing Numeric#exact? and Numeric#inexact?

> Numeric#rational?=1B$B!"=1B(BNumeric#complex?=1B$B!"=1B(BNumeric#float? =
=1B$B$NDI2C=1B(B
=
=1B$B$O=1B(B#5521=1B$B$G$9$M!#Fs7eL\$N=1B(B3=1B$B$H=1B(B5=1B$B$N0c$$$,J6$i=
$o$7$$$N$+$H;W$$$^$9$,=1B(B
=1B$B6vA3$G$9$h$M!#=1B(B

--=20
Tomoaki NISHIYAMA

Advanced Science Research Center,
Kanazawa University,
13-1 Takara-machi,=20
Kanazawa, 920-0934, Japan


On 2011/10/31, at 22:26, Kouji Takao wrote:

>=20
> Issue #5520 has been updated by Kouji Takao.
>=20
>=20
> =3Dbegin
> Yusuke Endoh wrote:
>> =1B$B%A%1%C%H$NDs0FFbMF$,=1B(B #5321 =1B$B$H=3DEJ#$7$F$$$k$?$a$G$9!#=1B=
(B
>> (=1B$B$b$70[$J$k$N$J$i!"Aj0cE@$rL@<($7$F$/$@$5$$=1B(B)
>=20
> =1B$B$3$NItJ,$@$1%3%a%s%H$7$^$9!#=1B(B
> =
=1B$B;d$O=1B(B#5320=1B$B!JK\%A%1%C%H!K$H=1B(B#5321=1B$B!J=1B(BEndou=1B$B$5=
$s$,=3DEJ#$7$F$$$k$H8@$o$l$F$$$k$b$N!K$O!"=3DEJ#$7$F$$$J$$$h$&$K;W$$$^$9!#=
=1B(Btadayoshi =
funaba=1B$B$5$s$,K\%A%1%C%H$r:n$i$l$F!"%3%a%s%H$5$l$F$$$k$N$O!V=1B(B[ruby-=
dev:44716] [ruby-trunk - Feature #5513] Numeric =
=1B$B$X=3DR8l8l$NDI2C!W$N$^$D$b$H$5$s$+$i$N%3%a%s%H$r<u$1$?$?$a$@$H;W$$$^$=
9!#=1B(B
>=20
> * #5520: Numeric#exact?=1B$B!"=1B(BNumeric#inexact? =1B$B$NDI2C=1B(B
> * #5321: =
Numeric#rational?=1B$B!"=1B(BNumeric#complex?=1B$B!"=1B(BNumeric#float? =
=1B$B$NDI2C=1B(B
>=20
> =1B$B0J2<!"$^$D$b$H$5$s$+$i$N%3%a%s%H$G$9!#=1B(B
>=20
> |Numeric#exact?=1B$B!"=1B(BNumeric#inexact?
>=20
> =1B$B$3$l$O?tA4HL$,;}$D@-<A$r<($7$F$$$k$N$G!"F3F~$K;?@.$7$^$9!#=1B(B
> =1B$B$`$i$1$s$5$s$bDs0F$7$F$*$i$l$^$7$?$M!#=1B(B
>=20
> |Numeric#rational?=1B$B!"=1B(BNumeric#complex?=1B$B!"=1B(BNumeric#float?=

>=20
> =
=1B$B$^$"!"$9$G$K=1B(Binteger?=1B$B$J$I$,$"$k$N$G$O$9$,!"=1B(Binteger=1B$B=
$G$J$$=1B(B
> (real)=1B$B$N$b$N$r$5$i$K=1B(Brational, =
float=1B$B$H:Y$+$/J,3d$9$k%9%?%$%k$r=1B(B
> =1B$B?d>)$9$k$3$H$K$J$k$3$l$i$N=3DR8l$NF3F~$OAm>N@-$H5UJ}8~$K$J$k$N=1B(B=

> =1B$B$G$O$J$$$G$9$+!)=1B(B
>=20
> complex? =1B$B$O%9%+%i!<$G$J$$E@$GFCJL07$$$,I,MW$=3D$&$J5$$,$9$k$N$G!"=1B=
(B
> =1B$BB>$N=3DR8l$h$j$OI,MW@-$,9b$$$N$+$b$7$l$^$;$s$,!";d$K$OH=3DCG$,$D=1B=
(B
> =1B$B$-$^$;$s!#=1B(B
>=20
> =3Dend
>=20
> ----------------------------------------
> Feature #5520: Numeric#exact?=1B$B!"=1B(BNumeric#inexact? =1B$B$NDI2C=1B=
(B
> http://redmine.ruby-lang.org/issues/5520
>=20
> Author: tadayoshi funaba
> Status: Assigned
> Priority: Normal
> Assignee: Yukihiro Matsumoto
> Category: core
> Target version: 2.0
>=20
>=20
> =1B$B;C$/MM;R$r8+$FFC$KH?BP$,$J$1$l$P7hDj$7$^$9!#=1B(B
>=20
> =1B$B:#$N=1B(B raitonal =1B$B$d=1B(B complex =
=1B$B$N<BAu$O!">-Mh$3$N=3DR8l$,F3F~$5$l$k;v$r4|BT$7$F=1B(B
> =1B$B<BAu$7$F$*$$$?$N$G!"$=3D$N@Z$j49$($b4^$a$F:n6H$7$^$9!#=1B(B
>=20
>=20
>=20
> --=20
> http://redmine.ruby-lang.org
>=20
>=20