- Introduction
- Platform
- Tutorial
- FAQ
- Language reference
- Verbs
- Iterators
- Queries
- Dynamic parsers
- Standard library
- Plugins
- For Python developers
- For KDB+ developers
- Application examples
Floor
floor
returns the greatest integer less or equal to the argument.
Syntax: floor x; floor [x]
o)floor 10.5
10f
o)floor -10.5
-11f
o)floor -2.5 0 2.5
-3 0 2
o)abs floor -1.2
2f
o)
The function is atomic:
o)floor(2.3 4.5;6.7)
2 4f
6f
o)