floor¶

Round down

Syntax: floor x, floor[x]

Returns the greatest integer ≤ to numeric x.

q)floor -2.1 0 2.1
-3 0 2


floor is an atomic function.

Comparison tolerance¶

Prior to V3.0, floor used comparison tolerance.

q)floor 2 - 10 xexp -12 -13
1 2


Datetime¶

Prior to V3.0, floor accepted datetime. Since V3.0, use "d"$ instead. q)floor 2009.10.03T13:08:00.222. /type error since V3.0 2009.10.03 q)"d"$2009.10.03T13:08:00.222
2009.10.03


Domain and range¶

domain b g x h i j e f c s p m d z n u v t
range  . . . . i j j j c s . . . . . . . .


Range: ijcs

ceiling
Basics: Mathematics