A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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)
Ping & DNS
- my free Android networking tools app
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's_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 7 API documentation
- My blog about Scala
rocket mass heater
subject: What are the possible value for Integers in IEEE?
Struts 2 property tag
web service low response
What Is RowSet Explain With Example.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014