Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

store a double into a variable of type int

807605Sep 27 2007 — edited Sep 28 2007
if I have a calculated value of type "double", and I would like to store it as an "int" in a variable of type "int".
when i casted the double to int, seems it doesn't work.
what should the command be?
Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2007
Added on Sep 27 2007
11 comments
1,110 views