The Dictionary models complex floor as

   floor=: j./@(ip+(c2>c1),c1+:c2)
   '`c1 c2 fp ip'=:(1:>+/@fp)`(>:/@fp)`(+.-ip)`(<.@+.)

but this doesn't match:

   (<. , floor) 0.5j0.5000000000000001
0j1 1

it appears that the comparison to produce c2 is in fact intolerant:

   '`c1 c2 fp ip'=:(1:>+/@fp)`(>:!.0/@fp)`(+.-ip)`(<.@+.)
   (<. , floor) 0.5j0.5000000000000001
0j1 0j1


Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to