aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/prog/pi.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-10-01 22:11:30 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-10-01 22:11:30 +0300
commit6776d0066ac3bd96228fe6fc98395023562e29d7 (patch)
tree0c343ab28d37d155229fb73eaff91691e9e2f278 /awklib/eg/prog/pi.awk
parentdff88ee5892900fe96fa0601f1489c6207bbbaf6 (diff)
downloadegawk-6776d0066ac3bd96228fe6fc98395023562e29d7.tar.gz
egawk-6776d0066ac3bd96228fe6fc98395023562e29d7.tar.bz2
egawk-6776d0066ac3bd96228fe6fc98395023562e29d7.zip
Manual updates from Antonio, mainly URL fixes.
Diffstat (limited to 'awklib/eg/prog/pi.awk')
-rw-r--r--awklib/eg/prog/pi.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/awklib/eg/prog/pi.awk b/awklib/eg/prog/pi.awk
index e1b5bc4f..91060db9 100644
--- a/awklib/eg/prog/pi.awk
+++ b/awklib/eg/prog/pi.awk
@@ -10,7 +10,7 @@ BEGIN {
for (m = digits * 4; m > 0; --m) {
d = m * 2 + 1
x = pi * m
- intdiv(x, d, result)
+ intdiv0(x, d, result)
pi = result["quotient"]
pi = pi + two
}