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:
parent
ab6e5c655c
commit
782d0f0d32
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue