Solved

Unsigned numbers

Posted on 2002-06-23
4
305 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Yep, BigInteger sounds suitable for that.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now