Bytes in java are signed values [-128,127]. I've submitted a ticket
to add a ubyte function which simply checks for [0,255]. Note that
this only deals with down-casting. Shift functions work on ints, thus
you'd need to mask the byte to an int with (bit-and % 0xFF). If you
don't do this, then when
Halelujah!
On Mar 28, 4:29 pm, Michael Wood wrote:
> On 28 March 2010 22:07, Glen Rubin wrote:
>
> > I guess not, some of the values I am obtaining are off. I have tried
> > searching for a java class that will understand a signed (two's
> > complement) hex (16 bit, 0xff32)
>
> > This is someth
On 28 March 2010 22:07, Glen Rubin wrote:
> I guess not, some of the values I am obtaining are off. I have tried
> searching for a java class that will understand a signed (two's
> complement) hex (16 bit, 0xff32)
>
> This is something so basic, I know there must be some in built
> function for t
I guess not, some of the values I am obtaining are off. I have tried
searching for a java class that will understand a signed (two's
complement) hex (16 bit, 0xff32)
This is something so basic, I know there must be some in built
function for this??
On Mar 28, 3:06 pm, Glen Rubin wrote:
> I am w
I am working with 2's complement hex. It looks like i can get the
value of any number by just using byte?
e.g.:
(byte 0xff32)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that post