Denso BHT-200QW Especificações Página 87

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 587
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 86
Chapter 6. Expressions and Operators
79
6.3 Operators
6.3.1 Arithmetic Operators
Arithmetic operators include a negative sign (-) and operators for multiplication (*), division (/),
addition (+), and subtraction (-). They also include modulo operator MOD.
Operations Arithmetic Operators Precedence Examples
Negation
Multiplication and division
Modulo arithmetic
Addition and subtraction
-
* and /
MOD
+ and -
1
2
3
4
-a
a*b, a/b
a MOD b
a+b, a-b
Modulo Operation (MOD)
Modulo Operation (MOD)Modulo Operation (MOD)
Modulo Operation (MOD)
The MOD operator executes the modulo operation; that is, it divides expression 1 by
expression 2 (see the format below) and returns the remainder.
Syntax: expression1 MOD expression2
Where one or more spaces or tab codes should precede and follow the MOD.
If these expressions include real values, the MOD first rounds them off to integers and then
executes the division operation. For example, the MOD treats expression 8 MOD 3.4 as 8
MOD 3 so as to return the remainder "2".
Overflow and Division by Zero
Overflow and Division by ZeroOverflow and Division by Zero
Overflow and Division by Zero
Arithmetic overflow resulting from an operation or division by zero will cause a run-time
error. Such an error may be trapped by error trapping.
Vista de página 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 586 587

Comentários a estes Manuais

Sem comentários