Interestingly, but I guess, 'expected': g=: 0 2 2&#. g (g ^:_1) 5 5 g(g ^:_1) _5 _5
Enjoy Ken -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Istvan Kadar Sent: 10 June 2007 15:58 To: Programming forum Subject: Re: [Jprogramming] (anti)base on negative numbers 2007/6/10, Ken Chakahwata <[EMAIL PROTECTED]>: > > However, > > 0 2 2#:_5 > _2 1 1 > > NB. And > > #.0 2 2#:_5 > _5 (#.^:_1)5 1 0 1 (#.^:_1)_5 0 1 1 REMINDER: if the Most Significant Bit (MSB) is zero, then the result is Complementer Binary Code (CBC). -- Istvan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
