Well, I've done it in a way I suspect not to be the best:
dectohex =: '0123456789ABCDEF' {~ _4 #.\ [: (0 , ])^:(0 ~: 4&|@:#)^:_ #:dectohex 231 E7 dectohex 255 FF On 30 Oct 2011, at 12:50, David Vaughan wrote: > How could I convert decimal numbers to hexadecimal in J? I thought the #. > verb would help, but either it doesn't or I was doing it wrong. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
