mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Trailing 0s in split removed. & bug in floor fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
717848493c
commit
a179c38e4c
1 changed files with 3 additions and 1 deletions
|
@ -3154,6 +3154,7 @@ VpSzMantissa(Real *a,char *psz)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*psz = 0;
|
*psz = 0;
|
||||||
|
while(psz[-1]=='0') *(--psz) = 0;
|
||||||
} else {
|
} else {
|
||||||
if(VpIsPosZero(a)) sprintf(psz, "0");
|
if(VpIsPosZero(a)) sprintf(psz, "0");
|
||||||
else sprintf(psz, "-0");
|
else sprintf(psz, "-0");
|
||||||
|
@ -3728,8 +3729,9 @@ VpMidRound(Real *y, int f, int nf)
|
||||||
VpNmlz(y);
|
VpNmlz(y);
|
||||||
VpRdup(y,0);
|
VpRdup(y,0);
|
||||||
} else {
|
} else {
|
||||||
|
S_INT s = VpGetSign(y);
|
||||||
VpSetOne(y);
|
VpSetOne(y);
|
||||||
VpSetSign(y,VpGetSign(y));
|
VpSetSign(y,s);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
y->frac[ix] = div;
|
y->frac[ix] = div;
|
||||||
|
|
Loading…
Reference in a new issue