Thanks everyone for the replies! ----------- Bill Lam:
Even if the numbers are divisible by 2, they themselves may also floating point numbers.
I meant only the case when the dividend and the divisor are integers. ----------- Raul Miller: > If you want integer division, I think you should use <.@% or #: I thought the problem with <.@% was the loss of precision. datatype e =: 9223372036854775806 integer e % 2 4.61169e18 <. e % 2 4611686018427387904 However, this is not the case, since a special algorithm is probably used for <.@% integer division. e <.@% 2 4611686018427387903 Too bad it's not clear from the documentation. I thought integer division was implemented via float. ----------- Henry Rich: > x 33 b. y 33 used for left shift. What number should be used for right shift? I looked here https://code.jsoftware.com/wiki/Vocabulary/bdot#bitwise Best wishes, Veter Kamenev ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm