Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
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
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Programmer Certification (OCPJP)
floating point literals
Mansi Vyas
Greenhorn
Posts: 27
posted 19 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
Do we need to be familiar with exponent notation for the exam?
e.g. float f = 43e1;
dennis zined
Ranch Hand
Posts: 330
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes, I would think so. Its not that difficult though.
Your example, by the way, should be:
e.g. float f = 43e1f;
floating-point numbers are double by default, so you need to indicate its float to assign it to a float variable.
SCJP 1.4<br />SCWCD 1.4
Derek Baker
Ranch Hand
Posts: 46
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I should probably know this, but what does 43e1 represent? 43^1? 43*10^1? Something like that, I think.
dennis zined
Ranch Hand
Posts: 330
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Actually its 43 * 10 expressed in floating-point type numeral. '^' is the bitwise/logical exclusive OR.
SCJP 1.4<br />SCWCD 1.4
Derek Baker
Ranch Hand
Posts: 46
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Sorry, shouldn't have used that symbol. So that's 43 * (10 to the first power)?
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Conversion table
WA #2 ..... word association
What would be the result and why ?
printf, multiple flags
Tech Word Game
More...