arithmetic
The [[awk]] programming language provides a set of [[dyadic]] arithmetic operators for performing basic . . . + | [[addition]] | - | [[subtraction]] | !* | [[multiplication]] | !/ | [[division]] | % | [[modulus]] . . . addition print 8 - 3 # subtraction print 6 * 3 # multiplication print 10 / 4 # division print 10 % 4 . . .
1K - last updated 2011-05-24 22:16 UTC by markhobley
AwkGuide
** Work in Progress ** {{{ import from Mark Hobley's wiki }}} <toc> ---- == Overview * [[Overview]] . . . [[modulus]] operator * [[multiline]] records * [[multiplication]] * [[NF]] * [[nudge operator]]s * [[number]]s . . .
4K - last updated 2011-08-14 15:57 UTC by markhobley
compound assignment operator
The *compound assignment operators* (also called *combination assignment operators*) provide a more concise . . . | [[addition]] | !-= | [[subtraction]] | !*= | [[multiplication]] | !/= | [[division]] | %= | [[modulus]] . . .
2K - last updated 2011-03-27 09:46 UTC by markhobley
exponent
==Warning! The use of [[gawkism]]s will prevent the script from running correctly on systems that use . . . # 128 the exponent has a higher precedence than multiplication }}} **Exponent Combination Assignment . . .
2K - last updated 2012-03-20 07:33 UTC by g0pher
multiplication
== Multiplication Operator == The multiplication operator represented by the star symbol, is used as . . . multiplied together: answer = 3 * 4 # 12 === Multiplication Combination Assignment Operator === . . . The multiplication compound assignment operator represented . . . digraph, can also be used to perform a multiplication: value *= 3 # value = value * 3 . . .
1K - last updated 2011-04-17 06:32 UTC by markhobley
precedence
The [[awk]] programming language uses rules of *precedence* to determine the order in which [[operator]]s . . . this actually produces a value of 23, because [[multiplication]] has a higher precedence than [[addition]], . . . {{{ print 3 + 4 * 5 # This produces 23 because multiplication is done before addition }}} == _Using . . . [[parentheses]] have a higher precedence than [[multiplication]], so their contents are evaluated first: . . . cause the addition to be evaluated before the multiplication }}} == _Groups of operators or functions . . .
7K - last updated 2013-04-11 06:58 UTC by markhobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | | ' | [[apostrophe]] | | * | [[asterisk]] | multiplication operator and regular expression operator . . . subtraction compound assignment operator | *= | multiplication compound assignment operator | /= | . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
7 pages found.