Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Beginning Java
*** HOW is the memory allocated for a floating point literal..???
Ramalingam Vijayakumar
Greenhorn
Posts: 19
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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"
Posts: 8521
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Memory allocation is an operating system specific thing. Why do you NEED to know?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Cindy Glass
"The Hood"
Posts: 8521
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Of course we know that it is 32 bits.
b
asic
b
oolean
b
yte
SC
runched = 16
s
hort
c
har
IF
fy = 32
i
nteger
f
loat
L
oa
d
ed = 64
l
ong
d
ouble
[This message has been edited by Cindy Glass (edited September 04, 2001).]
"JavaRanch, where the deer and the Certified play" - David O'Meara
Jack Wiesenthaler
Ranch Hand
Posts: 75
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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"
Posts: 8521
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
"JavaRanch, where the deer and the Certified play" - David O'Meara
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Basic Question
Surprising output,can't understood.
Representing floating point literals in hexidecimal format
Double literal
Pool of Interns Memory(String literals)
More...