File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

*** HOW is the memory allocated for a floating point literal..???

 
Ramalingam Vijayakumar
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a big problem..
can anybody explain me how is the memory allocated for a floating point literal......
thanx in advance,
bye
ram.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Memory allocation is an operating system specific thing. Why do you NEED to know?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course we know that it is 32 bits.
basic
boolean
byte
SCrunched = 16
short
char
IFfy = 32
integer
float
Loaded = 64
long
double

[This message has been edited by Cindy Glass (edited September 04, 2001).]
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are the lines from jni.h -->
typedef float jfloat;
So, I would imagine the memory representation is that the most significant bit is the sign bit followed by the 31 bits for the number.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still confused as to WHY you need to know the details of the implementation.
I still do not understand what problem that you are having.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic