Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within certification results
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Certification Results
SCJP
Mathangi Shankar
Ranch Hand
Posts: 56
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I want a small information. How would I convert the double value 0xffff to byte value? Please reply.
--------------------------------<br />SCJP1.4
Premil Jacob
Ranch Hand
Posts: 30
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well first of all I hope you understand that converting a double to byte would mean that some data would be lost.
To convert the double value to byte would be
byte b=(byte)0xffff
Thanks,<br />Premil<br /> <br />SCJP 1.4
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Doubt in EL Implicit Objects: Cookie
How to convert the for Loop to the equalent JSTL code in JSP
how to reset the field after validation using annotations(Struts 2)
jsp bean problem
Tricky Question
More...