#!F-adobe-helvetica-medium-r-normal--18* #!N #!CDarkGreen #!Roper Operators #!N #!EC The operators listed in the following table can be used in arithmetic expressions. In the table, a horizontal line separates each precedence level and the higher levels are placed above the lower ones. Operators with higher precedence are evaluated before those with lower precedence. Operators with the same precedence are evaluated from left to right. Because expressions in parentheses are evaluated first, you can use parentheses to alter the grouping of operands, thereby changing the precedence levels. #!N #!N #!T,1,106,646 #!F-adobe-times-bold-r-normal--18* #!N TAB Operator TAB Description #!EF #!N TAB - TAB Unary minus #!N TAB ^ TAB Exponentiation #!N TAB ** TAB Exponentiation (alternate form) #!N TAB * TAB Multiplication #!N TAB / TAB Division #!N TAB + TAB Addition #!N TAB - TAB Subtraction #!N #!N The following expressions all have the value {2.0 4.0 8.0}: #!N #!N #!CForestGreen #!N #!F-adobe-courier-bold-r-normal--18* #!N {3.0 5.0 9.0} - {1.0 1.0 1.0} #!N {2 4 8} + 0.0 #!N 8 * {.25 .50 1e0} #!N 2 ^ {1.0 2.0 3.0} #!N ({2 2 2} - 1.0) * {2 4 8} #!EF #!N #!N #!EC #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N #!Lall533,dxall534 h Assignment Statements #!EL #!N #!F-adobe-times-medium-i-normal--18* #!N
Generated by dwww version 1.15 on Sat Jun 22 12:52:19 CEST 2024.