Browsing Chinese (Simplified) translation

504 of 547 results
504.
Evaluate arithmetic expressions.

Evaluate each ARG as an arithmetic expression. Evaluation is done in
fixed-width integers with no check for overflow, though division by 0
is trapped and flagged as an error. The following list of operators is
grouped into levels of equal-precedence operators. The levels are listed
in order of decreasing precedence.

[tab]id++, id--[tab]variable post-increment, post-decrement
[tab]++id, --id[tab]variable pre-increment, pre-decrement
[tab]-, +[tab][tab]unary minus, plus
[tab]!, ~[tab][tab]logical and bitwise negation
[tab]**[tab][tab]exponentiation
[tab]*, /, %[tab][tab]multiplication, division, remainder
[tab]+, -[tab][tab]addition, subtraction
[tab]<<, >>[tab][tab]left and right bitwise shifts
[tab]<=, >=, <, >[tab]comparison
[tab]==, !=[tab][tab]equality, inequality
[tab]&[tab][tab]bitwise AND
[tab]^[tab][tab]bitwise XOR
[tab]|[tab][tab]bitwise OR
[tab]&&[tab][tab]logical AND
[tab]||[tab][tab]logical OR
[tab]expr ? expr : expr
[tab][tab][tab]conditional operator
[tab]=, *=, /=, %=,
[tab]+=, -=, <<=, >>=,
[tab]&=, ^=, |=[tab]assignment

Shell variables are allowed as operands. The name of the variable
is replaced by its value (coerced to a fixed-width integer) within
an expression. The variable need not have its integer attribute
turned on to be used in an expression.

Operators are evaluated in order of precedence. Sub-expressions in
parentheses are evaluated first and may override the precedence
rules above.

Exit Status:
If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
对算术表达式进行求值。

将每个 <参数> 作为算术表达式进行求值。求值在固定宽度的整数中完成,
没有溢出检测,不过除以 0 的异常会被捕获,并且会报一个错误。下面的运算符
列表中,同一行的运算符的优先级相等。列表按照优先级从高到低进行排序。

[tab]id++, id--[tab]变量的后缀自增、后缀自减
[tab]++id, --id[tab]变量的前缀自增、前缀自减
[tab]-, +[tab][tab]一元负号、正号
[tab]!, ~[tab][tab]逻辑和按位取反
[tab]**[tab][tab]指数
[tab]*, /, %[tab][tab]乘法、除法、取余数
[tab]+, -[tab][tab]加法、减法
[tab]<<, >>[tab][tab]按位左移、按位右移
[tab]<=, >=, <, >[tab]比较
[tab]==, !=[tab][tab]等于,不等于
[tab]&[tab][tab]按位与
[tab]^[tab][tab]按位异或
[tab]|[tab][tab]按位或
[tab]&&[tab][tab]逻辑与
[tab]||[tab][tab]逻辑或
[tab]expr ? expr : expr
[tab][tab][tab]条件运算符
[tab]=, *=, /=, %=,
[tab]+=, -=, <<=, >>=,
[tab]&=, ^=, |=[tab]赋值

shell 变量允许作为操作数。变量的名称会被它的值替代(强制转换为固定
宽度的整数)。变量不需要打开 "整数" 属性就可以在表达式中使用。

运算符按照优先级顺序进行求值。括号中的子表达式将最先求值,
并可以覆盖上述优先级规则。

退出状态:
如果最后一个 <参数> 求值结果为 0,则 let 返回 1; 否则 let 返回 0。
Translated by Wenbin Lv
Located in builtins.c:949
504 of 547 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.