mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n) reported and fixed by Javier Goizueta.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81d1f5f866
commit
0967d72815
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Feb 1 23:00:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
|
||||
* ext/bigdecimal.c: Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n)
|
||||
reported and fixed by Javier Goizueta.
|
||||
|
||||
Sun Feb 1 05:30:06 2004 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
|
||||
|
|
|
@ -3788,10 +3788,9 @@ VpMidRound(Real *y, int f, int nf)
|
|||
}
|
||||
for(i=0;i<=n;++i) div *= 10;
|
||||
if(div>=BASE) {
|
||||
y->frac[ix] = 0;
|
||||
if(ix) {
|
||||
VpNmlz(y);
|
||||
VpRdup(y,0);
|
||||
y->frac[ix] = 0;
|
||||
VpRdup(y,ix);
|
||||
} else {
|
||||
S_INT s = VpGetSign(y);
|
||||
VpSetOne(y);
|
||||
|
|
Loading…
Add table
Reference in a new issue