arithmetic
The [[awk]] programming language provides a set of [[dyadic]] arithmetic operators for performing basic . . . 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 . . .
1K - last updated 2011-05-24 22:16 UTC by markhobley
awk nawk oawk
in 1977 there was awk.\\ this page attempts to explain the history of awk.\\ the 1978 7th Edition awk(1) . . . {{{awk can use ** or **= in place of ^ for exponention. }}} array SYMTAB holds info, eg: {{{awk . . .
2K - last updated 2012-03-18 23:21 UTC by g0pher
AwkDc
This is an awk implementation of the [http://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html|dc] . . . message here } } function _dc_modx(stk, modulus, exponent, base) { # GNU extension! showop("modx") modulus . . . = _dc_pop(stk) exponent = _dc_pop(stk) base = _dc_pop(stk) # This . . . in. if (_dc_isnum(base) && _dc_isnum(exponent) && _dc_isnum(modulus)) { # FIXME: . . . add checks to ensure that exponent and modulus are # integer values! (is that . . .
12K - last updated 2008-07-17 14:47 UTC by gnomon
ConvertHexToFloatingPoint
This code uses [[gawkism|gawk specific features]], such as the [[http://www.gnu.org/manual/gawk/html_node/Strtonum-Function.html][strtonum]] . . . sign=and(i3, 0x80) # bits 23-30 (next 8) are the exponent exponent=and(i3,0x7F) tmp=and(i2,0x80) tmp=rshift(tmp, . . . 7) exponent=lshift(exponent, 1) exponent=or(exponent,tmp) . . . = decfrac+2^(i-23) } fval=(1+decfrac) * 2^(exponent-bias) if(sign) fval=fval*-1 return fval } . . . and(x,0x80000000) # bits 23-30 (next 8) are the exponent exponent = and(x,0x7F800000) # shift them . . .
3K - last updated 2010-06-23 19:49 UTC by john b
exponent
==Warning! The use of [[gawkism]]s will prevent the script from running correctly on systems that use . . . [[awk]] interpreter. **The doublestar exponent operator is not available in traditional implementations** . . . [[awk]] implementations do not provide an exponent [[arithmetic]] operator. The [[doublestar]] . . . symbol used here for [[arithmetic]] exponential operations is a [[gawkism]] and will not . . . *The [[doublestar]] gawkism acts as a dyadic exponent [[operator]]. It returns the [[value]] given . . .
2K - last updated 2012-03-20 07:33 UTC by g0pher
FIXES
[[FIXES]] revised: . . . **{{{**}}}** or **{{{**}}}**= in place of ^ for exponention.\\ array SYMTAB holds info.\\ from commandline: -F . . .
6K - last updated 2014-01-15 23:17 UTC by g0ph3r
gawkism
Gawkisms are non portable syntax components that do not work with some awk implementations. The use of . . . function * delete array * [[ERRNO]] * [[exponent]] operator * [[FIELDWIDTHS]] * [[gensub]] . . .
2K - last updated 2011-05-19 22:29 UTC by markhobley
LargestAccurateNumber
Most [[awk]] implementations use floating point double precision to represent every kind of numeric value. . . . because the precision is still correct with the exponent=1 with a double precision IEEE 754 numbers. . . . thusly: |=1 bit|=11 bits|=52 bits| |sign|exponent|fraction| Note that it says "fraction" above, . . . in different circumstances. If **all** of the exponent bits are 0, the fraction is a 52-bit unsigned . . . means there's +0 and -0. Thanks, IEEE!) If the exponent field has **any** non-zero bits, it is assumed . . .
3K - last updated 2013-04-12 14:52 UTC by ttmrichter
mawk wish list
[[mawk_wish_list]]\\ mawk 1.3.4 from Thomas Dickey http://invisible-island.net/mawk/\\ his mawk is even . . . 4) 2**3 for 2^3 (use ** or **= in place of ^ for exponention) }}} ---- see:\\ http://brenocon.com/blog/2009/09/dont-mawk-awk-the-fastest-and-most-elegant-big-data-munging-language/\\ . . .
2K - last updated 2013-05-28 04:04 UTC by g0ph3r
operator
The [[awk]] programming language provides a series of *operators* that allow [[value]]s and [[variable]]s . . . [[gawkism]]s * [[concatenation]] operators * [[exponent]] operator is not supported by traditional . . .
3K - last updated 2011-05-24 22:19 UTC by markhobley
precedence
The [[awk]] programming language uses rules of *precedence* to determine the order in which [[operator]]s . . . 11 | ^ | The eleventh component is the [[caret]] exponent operator. This is the seventh operator | 12 . . .
7K - last updated 2013-04-11 06:58 UTC by markhobley
symbol
| *Symbol* | *Name* | *Purpose* | !! | [[pling]] | logical NOT | " | [[doublequote]] | | # | [[hash]] . . . | division compound assignment operator | ^= | exponent compound assignment operator | %= | modulus . . .
2K - last updated 2013-02-19 14:26 UTC by markhobley
12 pages found.