⌊
Floor r←⌊y
r
is the result of the scalar application of the floor function, .
The complex floor is defined by McDonnell as such:
- let
a
andb
be the real and imaginary parts ofy
- let
x
be1|a
andy
be1|b
- let
p
bea⊕⍥⌊b
, where the floor is the usual real floor - if
x + y
is less than1
,r
isp
- if
x
is greater than or equal toy
,r
isp+1
- otherwise,
r
isp+0ᴊ1