6 & Rational(7,2)

e$B0J2<$N$h$&$K!“e(B6 & Rational(7,2) e$B$Oe(B 2
e$B$K$J$j$^$9$,!”:81&$rF~e(B
e$B$l49$($Fe(B Rational(7,2) & 6 e$B$J$i%(%i!<$K$J$j$^$9!#e(B

e$B$3$l$O0U?^$5$l$?5sF0$G$7$g$&$+!#e(B

% ./ruby -ve ‘p 6 & Rational(7,2)’
ruby 1.9.0 (2008-05-12 revision 16388) [i686-linux]
2

% ./ruby -ve ‘p Rational(7,2) & 6’
ruby 1.9.0 (2008-05-12 revision 16388) [i686-linux]
-e:1:in <main>': undefined method&’ for Rational(7, 2):Rational
(NoMethodError)

e$B$1$$$8$e!w$$$7$D$+$G$9e(B.

In [ruby-dev :34656 ] the message: "[ruby-dev:34656] 6 & Rational(7,2)
", on May/12 18:03(JST) Tanaka A. writes:

e$B0J2<$N$h$&$K!“e(B6 & Rational(7,2) e$B$Oe(B 2 e$B$K$J$j$^$9$,!”:81&$rF~e(B
e$B$l49$($Fe(B Rational(7,2) & 6 e$B$J$i%(%i!<$K$J$j$^$9!#e(B

e$B$3$l$O0U?^$5$l$?5sF0$G$7$g$&$+!#e(B

e$B$&!<$se(B. e$BA0<[email protected]$H;W$$$^$9e(B.

e$B860x$Oe(B, {Fixnum,Bignum}#& e$B$NCf$Ge(B, other.to_inte$B$7$F$$$Fe(B
e$B$=$3$Ge(BRational
e$B$,e(BIntegere$B$KJQ49$5$l$k$+$i$G$9e(B.

e$BF1$8$3$H$Oe(B, Floate$B$G$b$$$($^$9e(B.

e$B%S%C%H1i;;$G$Ne(B to_int e$B$O$d$j2a$.$N$h$&$J5$$,$7$^$9$,e(B,
e$B$I$&$J$s$G$7$g$&e(B?

__
---------------------------------------------------->> [email protected](B
e$B7=<ye(B <<—
---------------------------------->> e-mail: [email protected] <<—

[email protected]$G$9!#e(B

At Mon, 12 May 2008 23:58:45 +0900,
[email protected]=<ye(B wrote in [ruby-dev:34664]:

e$B860x$Oe(B, {Fixnum,Bignum}#& e$B$NCf$Ge(B, other.to_inte$B$7$F$$$Fe(B e$B$=$3$Ge(BRational
e$B$,e(BIntegere$B$KJQ49$5$l$k$+$i$G$9e(B.

e$BF1$8$3$H$Oe(B, Floate$B$G$b$$$($^$9e(B.

e$B%S%C%H1i;;$G$Ne(B to_int e$B$O$d$j2a$.$N$h$&$J5$$,$7$^$9$,e(B, e$B$I$&$J$s$G$7$g$&e(B?

e$B;d$O$I$A$i$+$H$$$&$H!“e(BIntegere$B0J30$Ne(BNumerice$B$Ke(Bto_inte$B$rDj5A$9$k$Y$-e(B
e$B$G$O$J$$$N$G$O$J$$$+!”$H;W$$$^$9!#e(BFloate$B$de(BRationale$B$,e(BIntegere$B$K$J$ke(B
e$B$H$$$&$3$H$O$=$3$G>pJs$,Mn$A$k$o$1$G$9$h$M!#0EL[$NJQ49$O$"$^$jK>e(B
e$B$^$7$/$J$$$h$&$J5$$,$9$k$N$G$9$,!#e(B

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

In message “Re: [ruby-dev:34665] Re: 6 & Rational(7,2)”
on Tue, 13 May 2008 06:48:23 +0900, Nobuyoshi N.
[email protected] writes:
|
|[email protected]$G$9!#e(B
|
|At Mon, 12 May 2008 23:58:45 +0900,
|[email protected]=<ye(B wrote in [ruby-dev:34664]:
|> In [ruby-dev :34656 ] the message: "[ruby-dev:34656] 6 & Rational(7,2)
|> “, on May/12 18:03(JST) Tanaka A. writes:
|>
|> >e$B0J2<$N$h$&$K!“e(B6 & Rational(7,2) e$B$Oe(B 2 e$B$K$J$j$^$9$,!”:81&$rF~e(B
|> >e$B$l49$($Fe(B Rational(7,2) & 6 e$B$J$i%(%i!<$K$J$j$^$9!#e(B
|> >
|> >e$B$3$l$O0U?^$5$l$?5sF0$G$7$g$&$+!#e(B
|>
|> e$B$&!<$se(B. e$BA0<[email protected]$H;W$$$^$9e(B.
|>
|> e$B860x$Oe(B, {Fixnum,Bignum}#& e$B$NCf$Ge(B, other.to_inte$B$7$F$$$Fe(B e$B$=$3$Ge(BRational
|> e$B$,e(BIntegere$B$KJQ49$5$l$k$+$i$G$9e(B.
|>
|> e$BF1$8$3$H$Oe(B, Floate$B$G$b$$$($^$9e(B.
|>
|> e$B%S%C%H1i;;$G$Ne(B to_int e$B$O$d$j2a$.$N$h$&$J5$$,$7$^$9$,e(B, e$B$I$&$J$s$G$7$g$&e(B?
|
|e$B;d$O$I$A$i$+$H$$$&$H!“e(BIntegere$B0J30$Ne(BNumerice$B$Ke(Bto_inte$B$rDj5A$9$k$Y$-e(B
|e$B$G$O$J$$$N$G$O$J$$$+!”$H;W$$$^$9!#e(BFloate$B$de(BRationale$B$,e(BIntegere$B$K$J$ke(B
|e$B$H$$$&$3$H$O$=$3$G>pJs$,Mn$A$k$o$1$G$9$h$M!#0EL[$NJQ49$O$”$^$jK>e(B
|e$B$^$7$/$J$$$h$&$J5$$,$9$k$N$G$9$,!#e(B

e$B$*$C$7$c$k$3$H$O$o$+$j$^$9!#7|G0$Oe(B

  • e$B$J$,$i$/$=$N$h$&$KF0:[email protected](B
  • int/inte$B$,e(Binte$B$G$J$/$J$k>l9g$N5_:Qe(B

e$B$r$I$&9M$($k$+$G$9$M!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs