Solved

Unsigned numbers

Posted on 2002-06-23
4
308 Views
Last Modified: 2010-03-31
I need to use unsigned int and unsigned long in java!
???
0
Comment
Question by:s_lavie
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 7101583
There's only one native unsigned primitive: char. But you can get the functionality you need using BigInteger.
0
 
LVL 92

Expert Comment

by:objects
ID: 7102245
Java does not have an unsigned int and long data type.
Why exactly do you need it?
0
 
LVL 2

Author Comment

by:s_lavie
ID: 7102758
objects,
I need to represent (and manipulate) a disk address (8 bytes) which should be an unsigned long.
BigInteger as was suggested by CEHJ, looks like a possible solution - I'm checking it right now...
0
 
LVL 92

Expert Comment

by:objects
ID: 7102767
Yep, BigInteger sounds suitable for that.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap bin 2 41
by zero exception 10 54
mysql jsp example issue 32 53
web project error add remove 1 32
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question