例如,将算术运算符(如+)施加于某个元素时,该运算符会自动提取该元素的数值。
For example, arithmetic operators such as +, when applied to an element, automatically extract the numeric value of the element.
一元运算符对单个操作数执行操作,如返回数值表达式的负值或正值。
Unary operators perform an operation on a single operand, such as returning the negative or positive value of a numeric expression.
运算数:运算符来进行运算操作的数值。
注意数值型的字面值不包括符号(译注:正负号),像-1实际上是个组合了一元运算符“-”和字面值1的表达式。
Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the unary operator '-' and the literal 1.
注意数值型的字面值不包括符号(译注:正负号),像-1实际上是个组合了一元运算符“-”和字面值1的表达式。
Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the operator - and the literal 1.
表达式可以使用在常数值、命令的退出代码、字符串、宏和文件系统路径上使用的运算符。
Expressions can use operators that act on constant values, exit codes from commands, strings, macros, and file-system paths.
运算符对数值执行常见计算,其中包括将数值的位模式移位。
Arithmetic Operators perform familiar calculations on numeric values, including shifting their bit patterns.
运算符对数值执行常见计算,其中包括将数值的位模式移位。
Arithmetic Operators perform familiar calculations on numeric values, including shifting their bit patterns.
应用推荐