aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.1
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-07-10 16:32:44 -0700
committerArnold D. Robbins <arnold@skeeve.com>2014-07-10 16:32:44 -0700
commitdf2eaea6a92c7d89d604d0a4e885d064678ce3ed (patch)
tree127610b11382d876d1be2ebce2f770d60147788b /doc/gawk.1
parent21606db0d06b91332b1514f6662f7bc6d414e54e (diff)
downloadegawk-df2eaea6a92c7d89d604d0a4e885d064678ce3ed.tar.gz
egawk-df2eaea6a92c7d89d604d0a4e885d064678ce3ed.tar.bz2
egawk-df2eaea6a92c7d89d604d0a4e885d064678ce3ed.zip
Add div() function for integer division & remainder.
Diffstat (limited to 'doc/gawk.1')
-rw-r--r--doc/gawk.119
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/gawk.1 b/doc/gawk.1
index e3275e87..d5756f08 100644
--- a/doc/gawk.1
+++ b/doc/gawk.1
@@ -13,7 +13,7 @@
. if \w'\(rq' .ds rq "\(rq
. \}
.\}
-.TH GAWK 1 "Apr 17 2014" "Free Software Foundation" "Utility Commands"
+.TH GAWK 1 "Jul 10 2014" "Free Software Foundation" "Utility Commands"
.SH NAME
gawk \- pattern scanning and processing language
.SH SYNOPSIS
@@ -2629,6 +2629,23 @@ Return the cosine of
.IR expr ,
which is in radians.
.TP
+.BI div( num ", " denom ", " result )
+Truncate
+.I num
+and
+.I denom
+to integers. Return the quotient of
+.I num
+divided by
+.I denom
+in \fIresult\fB["quotient"]\fR
+and the remainder in
+in \fIresult\fB["remainder"]\fR.
+This is a
+.I gawk
+extension, primarily of value when working with
+arbitrarily large integers.
+.TP
.BI exp( expr )
The exponential function.
.TP