Rounds down, i.e. returns the nearest long integer value that is smaller than or equal to the specified input value.
Syntax
FLOOR(Value)
Input
Value | is a value |
Domain type: | any Value domain |
Output
FLOOR returns: | a long 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:
? FLOOR(0.5) |
returns 0 |
? FLOOR(2.4) |
returns 2 |
? FLOOR(ABS(-3.5)) | returns 3 |
MapCalc example:
OutMap = FLOOR(InMap)
InMap |
OutMap |
||||||||||||||||||
|
|
TabCalc example:
OutCol = FLOOR(InCol)
InCol |
OutCol |
-1.6 |
-2 |
-1.5 |
-2 |
-1.4 |
-2 |
? |
? |
0 |
0 |
1 |
1 |
1.4 |
1 |
1.5 |
1 |
1.6 |
1 |
See also: