=1B$BB<ED$G$9!#=1B(B

On 2010/03/16, at 3:38, Yui NARUSE wrote:

> =1B$B?tCM$N@5Ii$rJV$9%a%=3D%C%I$,M_$7$$$G$9!#=1B(B
> =1B$B<g$?$kA[DjMQES$O=1B(B 0.0 =1B$B$H=1B(B -0.0 =
=1B$B$r6hJL$7$?$$$H$-$G$9!#=1B(B
> =1B$B$3$l$O!"=1B(B0.0 > -0.0 =1B$B$d=1B(B 0.0 =3D=3D -0.0 =
=1B$B$G$OCN$k$3$H$,$G$-$^$;$s!#=1B(B
> =1B$B$H$j$"$($:=1B(B flo.to_s[0] =3D=3D ?- =
=1B$B$GCN$k$3$H$,$G$-$^$9$,!"$3$l$G$O$"$s$^$j$G$9!#=1B(B
>=20
> =1B$BG:$_$I$3$m$O$$$D$b$NDL$j%a%=3D%C%IL>$G$9$,!"=1B(B
> * Numeric#positive? =1B$B$H=1B(B Numeric#negative?
> * Numeric#sign -> =1B$BIi$G=1B(B -1=1B$B!"@5$G=1B(B 1
> * Numeric#sign? -> =1B$BIi$G=1B(B true, =1B$B@5$G=1B(B false =
(signbit(3) =1B$B$K=3D,$&=1B(B)
> =1B$B$"$?$j$G$7$g$&$+!#=1B(B

Numeric#sign? =1B$B$h$j$O!"=1B(BNumeric#positive? =1B$B$H=1B(B =
Numeric#negative? =1B$B$rDs6!$9$k=1B(B
=1B$BJ}$,;d$O9%$-$G$9!#=1B(B

Numeric#sign =1B$B$bF1;~$KDs6!$5$l$F$$$FNI$$$H;W$$$^$9!#=1B(B

=1B$B$H$3$m$G!"$3$l$i$N%a%=3D%C%I$O=1B(B Complex =
=1B$B$G$O$I$N$h$&$K?6Iq$&$s$G$7$g$&!)=1B(B
* Numeric =1B$B$GDs6!$9$k%a%=3D%C%I$O<BIt$K$D$$$F$NId9f$r07$$!"=1B(B
  =1B$B5uIt$K$D$$$F$O=1B(B Complex =1B$B$GF1N`$N%a%=3D%C%I$rDs6!$9$k!#=1B(=
B
* Numeric =1B$B$GDs6!$9$k%a%=3D%C%I$r=1B(B Complex =1B$B$+$i$O=1B(B =
undef =1B$B$9$k!#=1B(B
  =1B$B<BIt$d5uIt$NId9f$,CN$j$?$$>l9g$O=1B(B Complex#real.positive? =
=1B$B$N$h$&$K$9$k!#=1B(B
=1B$B$3$N=1B(B2=1B$B%Q%?!<%s$,;W$$$D$-$^$7$?!#=1B(B

--
Kenta Murata
OpenPGP FP =3D FA26 35D7 4F98 3498 0810 E0D5 F213 966F E9EB 0BCC

=1B$BK\$r=3Dq$-$^$7$?=1B(B!!
=1B$B!X=1B(BRuby =1B$B5U0z$-%l%7%T!Y=1B(B =
http://www.amazon.co.jp/dp/4798119881/mrkn-22

E-mail: mrkn / mrkn.jp
twitter: http://twitter.com/mrkn/
blog: http://d.hatena.ne.jp/mrkn/