Infix notation

This is an old revision of this page, as edited by Gesslein (talk | contribs) at 13:11, 10 August 2008 (Undid revision 231010603 by 59.182.234.189 (talk)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Infobox notationInfix notation is the common arithmetic and logical formula notation, in which operators are written infix-style between the operands they act on (e.g. 2 + 2). It is not as simple to parse by computers as prefix notation ( e.g. + 2 2 ) or postfix notation ( e.g. 2 2 + ), but many programming languages use it due to its familiarity.

In infix notation, unlike in prefix or postfix notations, parentheses surrounding groups of operands and operators are necessary to indicate the intended order in which operations are to be performed. In the absence of parentheses, certain precedence rules determine the order of operations. These are explained in the order of operations article.

See also