File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
What are the possible value for Integers in IEEE?
Joined: Aug 31, 2009
Aug 31, 2009 05:46:21
Hi to all,
what are the possible value for integers in IEEE?
Joined: Mar 22, 2005
Aug 31, 2009 06:14:12
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
Joined: Aug 16, 2005
Aug 31, 2009 08:05:09
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
format, float is a
and double is a
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:
subject: What are the possible value for Integers in IEEE?
Struts 2 property tag
What Is RowSet Explain With Example.
web service low response
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015