The [[awk]] programming language provides a set of [[dyadic]] arithmetic operators for performing basic arithmetic on [[integer]] and [[floating point]] values. | *Operator* | *Description* | + | [[addition]] | - | [[subtraction]] | !* | [[multiplication]] | !/ | [[division]] | % | [[modulus]] {{{ awk print 6 + 3 # addition print 8 - 3 # subtraction print 6 * 3 # multiplication print 10 / 4 # division print 10 % 4 # modulus }}} == The awk programming language does not provide an exponent operator == Traditionally, the [[awk]] programming language does not provide an [[exponent]] operator. == The backslash symbol may not be used for integer division == Traditionally, the [[awk]] programming language does not support the use of a [[backslash]] symbol as an [[integer division]] operator. ---- [[Calculations involving integers may produce floating point results]] [[precedence]]
Summary:
This change is a minor edit.
Username: