The integer division operator divides two integers and returns the integer quotient, i.e. a DIV b.
Syntax
a DIV b
Input
a | is an integer value |
Domain type: | any Value domain |
b | is an integer value |
Domain type: | any Value domain |
Output
DIV returns: | a integer value |
Domain: | system domain Value |
Notes:
Tip:
When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.
Usable in
MapCalc, TabCalc, Simple calculators
Examples
Pocket line calculator examples:
? 10 DIV 2 |
returns 5 |
? 2^3/4 |
returns 2.00 |
MapCalc example:
OutMap = InMapA DIV InMapB
InMapA |
InMapB |
OutMap |
|||||||||||||||||||||||||||
|
|
|
TabCalc example:
OutCol = InColA DIV InColB
InColA |
InColB |
OutCol |
10 |
1 |
10 |
20 |
2 |
10 |
30 |
3 |
10 |
-40 |
4 |
-10 |
50 |
0 |
? |
60 |
-1 |
-60 |
70 |
? |
? |
? |
-2 |
? |
90 |
-3 |
-30 |
See also:
+ | / |
- | ^ |