"3!:3" gives you the internal representation of the J noun, including all
the header junk: it's not converting the decimal value to a hex value.

On Mon, Dec 1, 2014 at 10:31 AM, Jon Hough <[email protected]> wrote:

> Thanks.
> I think those are the verbs defined here, right?
> http://www.jsoftware.com/papers/elegant.htm
>
> So are you suggesting I do not use 3!:3?
>
> > Date: Mon, 1 Dec 2014 15:29:11 +0000
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [Jprogramming] Hexadecimal conversion
> >
> > In J8, there are profile entries: hfd and dfh.  Its available in addons
> for earlier versions.
> >
> >  hfd 15 17
> > 0f
> > 11
> >
> >
> >  hfd 15
> > f
> >
> >
> >
> > ----- Original Message -----
> > From: Jon Hough <[email protected]>
> > To: "[email protected]" <[email protected]>
> > Cc:
> > Sent: Monday, December 1, 2014 10:24 AM
> > Subject: [Jprogramming] Hexadecimal conversion
> >
> > I have been trying to understand the hex conversion 3!:3
> > (see : http://www.jsoftware.com/docs/help701/dictionary/dx003.htm )
> >
> > but cannot understand what the result is.
> > If I define
> >
> > tohex =: 3!:3
> >
> > and I want to choose to represent my  integer in standard byte order
> hex, I can do:
> >
> > 0 tohex 15
> > which gives,
> > e0000000
> > 00000004
> > 00000001
> > 00000000
> > 0000000f
> >
> > It seems what I want is in the last row (0000000f = 15). But what does
> all the rest mean?
> > Thanks.
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to