• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

Unsigned numbers

I need to use unsigned int and unsigned long in java!
???
0
s_lavie
Asked:
s_lavie
  • 2
1 Solution
 
CEHJCommented:
There's only one native unsigned primitive: char. But you can get the functionality you need using BigInteger.
0
 
objectsCommented:
Java does not have an unsigned int and long data type.
Why exactly do you need it?
0
 
s_lavieAuthor Commented:
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
 
objectsCommented:
Yep, BigInteger sounds suitable for that.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now