diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-14 14:31:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-14 14:31:21 +0000 |
commit | 7f0bb427e09ab985da52217f792c292ba9d0c556 (patch) | |
tree | 8c819ec7470696280d10f72a832d7f3f6e1b0a55 /bignum.c | |
parent | bb44ba9b72adf41dc17714351df724bc5c21bd7a (diff) | |
download | ruby-7f0bb427e09ab985da52217f792c292ba9d0c556.tar.gz |
* numeric.c (fix_pow): integer power calculation: 0**n => 0,
1**n => 1, -1**n => 1 (n: even) / -1 (n: odd).
* test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
0 files changed, 0 insertions, 0 deletions