diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-10 16:32:44 -0700 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-07-10 16:32:44 -0700 |
commit | df2eaea6a92c7d89d604d0a4e885d064678ce3ed (patch) | |
tree | 127610b11382d876d1be2ebce2f770d60147788b /doc/gawk.1 | |
parent | 21606db0d06b91332b1514f6662f7bc6d414e54e (diff) | |
download | egawk-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.1 | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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 |