Solved

Unsigned numbers

Posted on 2002-06-23
4
313 Views
Last Modified: 2010-03-31
I need to use unsigned int and unsigned long in java!
???
0
Comment
Question by:s_lavie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

628 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