[4397] in java-interest
Unsigned values and operations.
daemon@ATHENA.MIT.EDU (Pradeep Badri)
Thu Dec 21 19:51:19 1995
From: Pradeep Badri <pbadri@cisco.com>
To: java-interest@java.sun.com (Java Interest Group)
Date: Thu, 21 Dec 95 15:15:47 PST
Cc: pbadri@cisco.com (Pradeep Badri)
Hi,
Is there any way I can do operations on unsigned integers (4 bytes)
like comparing with another value. Right now i am handling
this by java code.
I am looking for something like :
unsigned long val ; // as in C
unsigned long max ;
if (val < max) // unsigned comparision.
And finally any way to print and parse the unsigned value
eg.
0xFFFFFFFF == -1 ==== 4294967295 (unsigned equivalent).
cheers,
-pradeep.
Pradeep Badri.
Cisco Systems.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com