1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prec. improvement for PI.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shigek 2003-04-24 13:31:20 +00:00
parent ab6e5c655c
commit 782d0f0d32

View file

@ -1201,7 +1201,7 @@ BigDecimal_pai(VALUE self, VALUE nFig)
Real *pv;
S_LONG mf;
mf = GetPositiveInt(nFig);
mf = GetPositiveInt(nFig)+VpBaseFig()-1;
GUARD_OBJ(pv,VpCreateRbObject(mf, "0"));
VpPai(pv);
return ToValue(pv);