Bug in '/' fixed by Tadashi Saito.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5f31755fc
commit
a40a92f04c
@ -683,8 +683,10 @@ BigDecimal_div(VALUE self, VALUE r)
|
|||||||
/* c xxxxx
|
/* c xxxxx
|
||||||
r 00000yyyyy ==> (y/b)*BASE >= HALF_BASE
|
r 00000yyyyy ==> (y/b)*BASE >= HALF_BASE
|
||||||
*/
|
*/
|
||||||
/* Round up ? */
|
/* Round */
|
||||||
VpInternalRound(c,0,c->frac[c->Prec-1],(VpBaseVal()*res->frac[0])/div->frac[0]);
|
if(VpIsDef(c)) {
|
||||||
|
VpInternalRound(c,0,c->frac[c->Prec-1],(VpBaseVal()*res->frac[0])/div->frac[0]);
|
||||||
|
}
|
||||||
return ToValue(c);
|
return ToValue(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user