File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes What are the possible value for Integers in IEEE? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What are the possible value for Integers in IEEE?" Watch "What are the possible value for Integers in IEEE?" New topic
Author

What are the possible value for Integers in IEEE?

sabari nath
Greenhorn

Joined: Aug 31, 2009
Posts: 3


Hi to all,
what are the possible value for integers in IEEE?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
What do you mean by "in IEEE"? I don't think the IEEE ever defined a format for integer numbers; IEEE-754 covers floating-point numbers only.

For integers represented in 2's complement format (the format commonly used today), the maximum values are

-2^31 to 2^32-1 (for 32 bit numbers)

-2^63 to 2^63-1 (for 64 bit numbers)
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14486
    
  23

Integers (byte, short, int, long, char) are stored in [url=http://en.wikipedia.org/wiki/Two%27s_complement]two's complement[/url] format.

Floating-point numbers (float, double) are stored in IEEE-754 format, float is a single precision and double is a double precision number.

Click the links for details.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are the possible value for Integers in IEEE?