s<>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20>ŕ\<5C>L<EFBFBD><4C><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>܂<EFBFBD><DC82>A<EFBFBD>u<EFBFBD>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>Ƃ<EFBFBD> BigDecimal <20><><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>ۏ<DB8F><D882><EFBFBD>
s <20>͏<EFBFBD><CD8F><EFBFBD><EFBFBD>l<EFBFBD><EFBFBD><F095B68E><EFBFBD><EFBFBD>Ŏw<C58E>肵<EFBFBD>܂<EFBFBD><DC82>D
n <20>͕K<CD95>v<EFBFBD>ȗL<C897><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ia <20>̍ő<CC8D><C591>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>𐮐<EFBFBD><F090AE90>Ŏw<C58E>肵<EFBFBD>܂<EFBFBD><DC82>B
n <20><> 0 <20>܂<EFBFBD><DC82>͏ȗ<CD8F><C897><EFBFBD><EFBFBD>ꂽ<EFBFBD>Ƃ<EFBFBD><C682>́An <20>̒l<CC92><6C> s <20>̗L<CC97><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ݂Ȃ<DD82><C882><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
s <20>̗L<CC97><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD> n=0 <20>̂Ƃ<CC82><C682>Ɠ<EFBFBD><C693><EFBFBD><EFBFBD>ł<EFBFBD><C582>B
a <20>̍ő<CC8D><C591>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>傢<EFBFBD>l<EFBFBD><6C><EFBFBD>̗p<CC97><70><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<LI>+</LI><BR>
<EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>ic = a + b<>j<BR>
c <20>̐<EFBFBD><CC90>x<EFBFBD>ɂ<C982><C282>Ắu<AHREF="#PREC"><EFBFBD>v<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>x<EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD></A><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
<LI>-</LI><BR>
<EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>ic = a - b<>j<EFBFBD>A<EFBFBD>܂<EFBFBD><DC82>͕<EFBFBD><CD95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<5D>ic = -a<>j<BR>
c <20>̐<EFBFBD><CC90>x<EFBFBD>ɂ<C982><C282>Ắu<AHREF="#PREC"><EFBFBD>v<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>x<EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD></A><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
c <20>̐<EFBFBD><CC90>x<EFBFBD>ɂ<C982><C282>Ắu<AHREF="#PREC"><EFBFBD>v<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>x<EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD></A><EFBFBD>v<EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
f > 0 <20>Ȃ<EFBFBD><C882>Aa <20><> c <20>ɁA<C981><41><EFBFBD>̂܂ܑ<DC82><DC91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
f <0<EFBFBD>Ȃ<EFBFBD><EFBFBD>A-a<EFBFBD><EFBFBD>c<EFBFBD>ɑ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B
f <20>̐<EFBFBD><CC90>Βl<CE92>i|f|<7C>j<EFBFBD>͂P<CD82><50><EFBFBD>Q<EFBFBD><51><EFBFBD>w<EFBFBD>肵<EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|f|=2 <20>̂Ƃ<CC82><C682>́Ac <20>̍ő吸<C591>x<EFBFBD><78> a <20>̎<EFBFBD><CC8E><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>菬<EFBFBD><E88FAC><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɂ<EFBFBD>
n <20><> c <20>̗L<CC97><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>in <20><><EFBFBD>ȏ<EFBFBD><C88F>̐<EFBFBD><CC90>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD> c <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>j<EFBFBD>B
c = a + b <20><><EFBFBD>ő<EFBFBD><C591><EFBFBD> n <20><><EFBFBD>܂Ōv<C58C>Z<EFBFBD><5A><EFBFBD>܂<EFBFBD><DC82>B
a + b <20>̐<EFBFBD><CC90>x<EFBFBD><78> n <20><><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><E582AB><EFBFBD>Ƃ<EFBFBD><C682>͊ۂ߂<DB82><DF82><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
c = a - b <20><><EFBFBD>ő<EFBFBD><C591><EFBFBD> n <20><><EFBFBD>܂Ōv<C58C>Z<EFBFBD><5A><EFBFBD>܂<EFBFBD><DC82>B
a - b <20>̐<EFBFBD><CC90>x<EFBFBD><78> n <20><><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><E582AB><EFBFBD>Ƃ<EFBFBD><C682>͊ۂ߂<DB82><DF82><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
c = a * b <20><><EFBFBD>ő<EFBFBD><C591><EFBFBD> n <20><><EFBFBD>܂Ōv<C58C>Z<EFBFBD><5A><EFBFBD>܂<EFBFBD><DC82>B
a * b <20>̐<EFBFBD><CC90>x<EFBFBD><78> n <20><><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><E582AB><EFBFBD>Ƃ<EFBFBD><C682>͊ۂ߂<DB82><DF82><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
c=a/b <20>̌v<CC8C>Z<EFBFBD><5A><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B r <20>ɂ͏<C982><CD8F>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>Ba/b<><62>
a <20>̏<EFBFBD><CC8F><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD><C889>̐<CC90><D882>̂āB<BR>
c = a.fix
<LI>frac</LI><BR>
a <20>̐<EFBFBD><CC90><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̐<CC90><D882>̂āB<BR>
c = a.frac
<LI>floor</LI><BR>
a <20>ȉ<EFBFBD><C889>̍ő吮<C591><E590AE><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD>l<EFBFBD>iBigDecimal <20>l<EFBFBD>j<EFBFBD><6A><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B<BR>
(<28><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD><C889><EFBFBD><EFBFBD>A<EFBFBD>ő<EFBFBD> n <20><><EFBFBD>ɂ<EFBFBD><C982>܂<EFBFBD>)<29>B<BR>
c = BigDecimal("1.23456")<BR>
d = c.floor(4) # d = 1.2345 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̂Ƃ<CC82><C682>͏<EFBFBD><CD8F><EFBFBD><EFBFBD>_<EFBFBD>ȏ<EFBFBD> n <20><><EFBFBD>ڂ𑀍삵<F091808D>܂<EFBFBD><DC82>B<BR>
c = BigDecimal("15.23456")<BR>
d = c.floor(-1) # d = 10.0 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
<LI>ceil</LI><BR>
a <20>ȏ<EFBFBD><C88F>̐<EFBFBD><CC90><EFBFBD><EFBFBD>̂<EFBFBD><CC82><EFBFBD><EFBFBD>A<EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>Z<EFBFBD><5A><EFBFBD>A<EFBFBD><41><EFBFBD>̒l<CC92>iBigDecimal <20>l<EFBFBD>j<EFBFBD><6A><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B<BR>
(<28><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD><C889><EFBFBD><EFBFBD>A<EFBFBD>ő<EFBFBD> n <20><><EFBFBD>ɂ<EFBFBD><C982>܂<EFBFBD>)<29>B<BR>
c = BigDecimal::new("1.23456")<BR>
d = c.ceil(4) # d = 1.2346 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̂Ƃ<CC82><C682>͏<EFBFBD><CD8F><EFBFBD><EFBFBD>_<EFBFBD>ȏ<EFBFBD> n <20><><EFBFBD>ڂ<EFBFBD><DA82>𑀍삵<F091808D>܂<EFBFBD><DC82>B<BR>
c = BigDecimal::new("15.23456")<BR>
d = c.ceil(-1) # d = 20.0 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
(<28><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD><C889><EFBFBD><EFBFBD>A<EFBFBD>ő<EFBFBD> n <20><><EFBFBD>ɂ<EFBFBD><C982>܂<EFBFBD>)<29>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̎<EFBFBD><CC8E>́A<CD81><41><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD> n+1 <20>ʂ̐<CA82><CC90><EFBFBD><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD>̌ܓ<CC8C><DC93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
c = BigDecimal::new("1.23456")<BR>
d = c.round(4) # d = 1.235 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̂Ƃ<CC82><C682>͏<EFBFBD><CD8F><EFBFBD><EFBFBD>_<EFBFBD>ȏ<EFBFBD> n <20><><EFBFBD>ڂ<EFBFBD><DA82>𑀍삵<F091808D>܂<EFBFBD><DC82>B<BR>
c = BigDecimal::new("15.23456")<BR>
d = c.round(-1) # d = 20.0 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
(<28><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD><C889><EFBFBD><EFBFBD>A<EFBFBD>ő<EFBFBD> n <20><><EFBFBD>ɂ<EFBFBD><C982>܂<EFBFBD>)<29>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̎<EFBFBD><CC8E>́A<CD81><41><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ȉ<EFBFBD> n+1 <20>ʂ̐<CA82><CC90><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D882>̂Ă܂<C482><DC82>B
c = BigDecimal::new("1.23456")<BR>
d = c.truncate(4) # d = 1.2345 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
n <20><><EFBFBD><EFBFBD><EFBFBD>̂Ƃ<CC82><C682>͏<EFBFBD><CD8F><EFBFBD><EFBFBD>_<EFBFBD>ȏ<EFBFBD> n <20><><EFBFBD>ڂ<EFBFBD><DA82>𑀍삵<F091808D>܂<EFBFBD><DC82>B<BR>
c = BigDecimal::new("15.23456")<BR>
d = c.truncate(-1) # d = 10.0 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
divmod<EFBFBD><EFBFBD><EFBFBD>\<5C>b<EFBFBD>h<EFBFBD><68> a = c * b + r <20>ƂȂ<C682> a / b <20>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>^<5E>̏<EFBFBD> c <20>Ə<EFBFBD><C68F>] r <20><>
<EFBFBD>v<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> c <20>͐<EFBFBD><CD90><EFBFBD><EFBFBD>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂Ȃ<CC82><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɕϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20><><EFBFBD><EFBFBD><EFBFBD>ɋŋ<F3949282><C58B><EFBFBD><D882>܂<EFBFBD><DC82>B<BR>
flag <20><> true <20>̂Ƃ<CC82><C682>́A<CD81>w<EFBFBD>肵<EFBFBD><E882B5><EFBFBD><EFBFBD><EFBFBD>ԂɂȂ<C982><C882><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɗ<EFBFBD><C997>O<EFBFBD>s
flag <20><> false<73>i<EFBFBD>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>j<EFBFBD>Ȃ<EFBFBD><C882>A<EFBFBD><41><EFBFBD>O<EFBFBD>͔<EFBFBD><CD94>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>v<EFBFBD>Z<EFBFBD><5A><EFBFBD>ʂ<EFBFBD>
<EFBFBD>Ƃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD> n <20>̒l<CC92><6C> a <20><><EFBFBD>ȉ<EFBFBD><C889>̂Ƃ<CC82><C682><EFBFBD><EFBFBD>Ӗ<EFBFBD><D396><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<BR>
n = BigDecimal::SIGN_POSITIVE_ZERO(1) : a <20><> +0<BR>
n = BigDecimal::SIGN_NEGATIVE_ZERO(-1) : a <20><> -0<BR>
n = BigDecimal::SIGN_POSITIVE_FINITE(2) : a <20>͐<EFBFBD><CD90>̒l<BR>
n = BigDecimal::SIGN_NEGATIVE_FINITE(-2) : a <20>͕<EFBFBD><CD95>̒l<BR>
n = BigDecimal::SIGN_POSITIVE_INFINITE(3) : a <20><>+Infinity<BR>
n = BigDecimal::SIGN_NEGATIVE_INFINITE(-3) : a <20><>-Infinity<BR>
<LI>nan?</LI><BR>
a.nan? <20><> a <20><>NaN<61>̂Ƃ<CC82><C682>^<5E><><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B
<LI>infinite?</LI><BR>
a.infinite? <20><> a <20><>+<2B><><EFBFBD>܂<EFBFBD><DC82><EFBFBD>-<2D><><EFBFBD>̂Ƃ<CC82><C682>^<5E><><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B
<LI>finite?</LI><BR>
a.finite? <20><> a <20><><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD> NaN <20>łȂ<C582><C882>Ƃ<EFBFBD><C682>^<5E><><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̕<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>i"xxxxxxx"<22>j<EFBFBD>ƁA<C681><EFBFBD>i10<31>j<EFBFBD>A<EFBFBD>X<EFBFBD>Ɏw<C98E><77> n <20><><EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD>
a<EFBFBD>̗L<EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20><><EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>in <20>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>j<EFBFBD>B
a <20>̗L<CC97><4C><EFBFBD><EFBFBD> n <20><><EFBFBD><EFBFBD> sin <20><> cos <20><EFBFBD><F093AF8E>Ɂi<C981>e<EFBFBD>C<EFBFBD><43><EFBFBD>[<5B>W<EFBFBD>J<EFBFBD>Łj<C581>v<EFBFBD>Z<EFBFBD><5A><EFBFBD>āA
sin <20><> cos <20>̔z<CC94><7A><EFBFBD><EFBFBD><EFBFBD>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B
n <20>͕K<CD95>v<EFBFBD>ȗL<C897><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>i n <20><> sin <20><> cos <20><><EFBFBD>v<EFBFBD>Z<EFBFBD><5A><EFBFBD><EFBFBD><EFBFBD>킯<EFBFBD>ł͂<C582><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>j<EFBFBD>B
<EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>ΐ<EFBFBD><EFBFBD>̒<EFBFBD>e(=2.718281828....)<29><> a <20><><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>Z<EFBFBD><5A><EFBFBD>܂<EFBFBD><DC82>B<BR>
c = a.exp(n)<BR>
n <20>͕K<CD95>v<EFBFBD>ȗL<C897><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>B
<LI>power</LI><BR>
a <20><> n <20><><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>Z<EFBFBD><5A><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>͐<EFBFBD><CD90><EFBFBD><EFBFBD>B<BR>
c = a.power(n)<BR>
<EFBFBD><EFBFBD><EFBFBD>ʂƂ<EFBFBD><EFBFBD><EFBFBD> c <20>̗L<CC97><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a <20><> n <20>{<7B>ȏ<EFBFBD><C88F>ɂȂ<C982><C882>̂Œ<CC82><C592>ӁB
<LI>zero?</LI><BR>
a <20><> 0 <20>Ȃ<EFBFBD> true <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
c = a.zero?<BR>
<LI>nonzero?</LI><BR>
a <20><> 0 <20>Ȃ<EFBFBD> false<73>A0 <20>ȊO<C88A>Ȃ<EFBFBD> a <20><><EFBFBD>̂<EFBFBD><CC82>̂<EFBFBD><CC82>Ԃ<EFBFBD><D482>܂<EFBFBD><DC82>B<BR>
c = a.nonzero?<BR>
<LI><=></LI><BR>
a==b <20>Ȃ<EFBFBD> 0<>Aa > b <20>Ȃ<EFBFBD> 1<>Aa < b <20>Ȃ<EFBFBD> -1 <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<BR>
<EFBFBD>u==<3D>v<EFBFBD>Ɠ<EFBFBD><C693><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD> case <20><><EFBFBD>Ŏg<C58E>p<EFBFBD><70><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
c = a * "0.123456789123456789123456789" # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> BigDecimal <20>ɕϊ<C995><CF8A><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>v<EFBFBD>Z
<EFBFBD>v<EFBFBD>Z<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD>ɐ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD> NaN<61>iNot a Number<65>j<EFBFBD>ƕ\<5C>L<EFBFBD><4C><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
NaN <20><><EFBFBD>܂ތv<DE8C>Z<EFBFBD>͑S<CD91><53> NaN <20>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<EFBFBD>܂<EFBFBD> NaN <20>͎<EFBFBD><CD8E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂߂āA<C481>ǂ<EFBFBD><C782>Ȑ<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>̂<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> unsigned long <20>̔z<CC94><7A>(<28>ȉ<EFBFBD><C889>̍\<5C><><EFBFBD>̗v<CC97>ffrac)<29>ŊǗ<C58A><C797><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
unsigned long MaxPrec; // <20>ő吸<C591>x(frac[]<5D>̔z<CC94><7A><EFBFBD>T<EFBFBD>C<EFBFBD>Y)
unsigned long Prec; // <20><><EFBFBD>x(frac[]<5D>̎g<CC8E>p<EFBFBD>T<EFBFBD>C<EFBFBD>Y)
short sign; // <20>ȉ<EFBFBD><C889>̂悤<CC82>ɕ<EFBFBD><C995><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̏<EFBFBD><CC8F>Ԃ<EFBFBD><D482><EFBFBD><EFBFBD>`<60><><EFBFBD>܂<EFBFBD><DC82>B
// ==0 : NaN
// 1 : +0
// -1 : -0
// 2 : <20><><EFBFBD>̒l
// -2 : <20><><EFBFBD>̒l
// 3 : +Infinity
// -3 : -Infinity
unsigned short flag; // <20>e<EFBFBD><65><EFBFBD>̐<EFBFBD><CC90><EFBFBD><EFBFBD>t<EFBFBD><74><EFBFBD>b<EFBFBD>O
int exponent; // <20>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>̒l(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*BASE**exponent)
unsigned long frac[1]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̔z<CC94><7A>(<28><EFBFBD>)
c = a op b <20>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>v<EFBFBD>Z(op <20><> + - * /)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>̓<EFBFBD><CC93><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>j<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϐ<EFBFBD> c <20><><EFBFBD>V<EFBFBD><56><EFBFBD>ɐ<EFBFBD><C990><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>̏ꍇ<EFBFBD>́A<EFBFBD>덷<EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>Ȃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̐<EFBFBD><EFBFBD>x<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> c <20><EFBFBD><F090B690><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>Ⴆ<EFBFBD><E182A6>
c = 0.1+0.1*10**(-100) <20>̂悤<CC82>ȏꍇ<C88F>Ac <20>̐<EFBFBD><CC90>x<EFBFBD>͂P<CD82>O<EFBFBD>O<EFBFBD><4F><EFBFBD>ȏ<EFBFBD><C88F>̐<EFBFBD><CC90>x<EFBFBD><78>
<EFBFBD>Q<EFBFBD>D<EFBFBD><EFBFBD><EFBFBD><EFBFBD> c = a op b <20>̌v<CC8C>Z<EFBFBD><5A><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B<BR><BR>
<EFBFBD><EFBFBD><EFBFBD>̂悤<EFBFBD>ɁA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>Ə<EFBFBD><EFBFBD>Z<EFBFBD>ł<EFBFBD> c <20>͕K<CD95><4B><EFBFBD>u<EFBFBD>덷<EFBFBD><EB8DB7><EFBFBD>o<EFBFBD>Ȃ<EFBFBD><C882>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>̐<EFBFBD><CC90>x<EFBFBD><78>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> c <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>Ac = 1.0/3.0 <20>̂悤<CC82>Ȍv<C88C>Z<EFBFBD>Ŗ<EFBFBD><C596>炩<EFBFBD>Ȃ悤<C882>ɁA
c <20>̍ő吸<C591>x<EFBFBD><EFBFBD><F092B482><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>Ōv<C58C>Z<EFBFBD><5A><EFBFBD>ł<EFBFBD><C582><EFBFBD><D882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꍇ<EFBFBD><EA8D87><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<BR><BR>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ac <20>̍ő吸<C591>x<EFBFBD><78> a <20><> b <20><><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD><E582AB><EFBFBD>Ȃ<EFBFBD><C882>܂<EFBFBD><DC82>̂<EFBFBD> c <20><><EFBFBD>K<EFBFBD>v<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD>