| Author |
SCJP
|
Mathangi Shankar
Ranch Hand
Joined: Nov 01, 2004
Posts: 56
|
|
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
Joined: Sep 10, 2004
Posts: 30
|
|
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
|
 |
 |
|
|
subject: SCJP
|
|
|