网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Precedence rule
释义

Precedence rule

英语百科

Order of operations

In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that define which procedures to perform first in order to evaluate a given mathematical expression.

For example, in mathematics and most computer languages, multiplication precedes addition. Thus, in the expression 2 + 3 × 4, the answer is 14 (not 20). Brackets, ( and ), { and }, or [ and ] — which have their own rules — can indicate an alternate order or reinforce the default order to avoid confusion, thus the preceding expression could be changed to (2 + 3) × 4 to produce 20, or 2 + (3 × 4) to produce 14 (the default if there are no brackets).

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/17 9:32:51