|
||
|
||||
|
With this code you can type cast a double variable value to integer.
Java Code:
The double value is 420.5 and the application prints out the integer value of 420
__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight] Forum Tip: Add to peoples reputation ( ) by clicking the button on their useful posts.
|
![]() |
| Tags |
| convert double to integer, double to integer, type cast int |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Format a double value to 2 decimal places | JavaPF | Java Code Snippets and Tutorials | 2 | 08-04-2010 03:45 PM |
| how to solve this type of stackoverflowerror... | sanatkumar | Exceptions | 2 | 07-07-2009 07:40 PM |
| [SOLVED] make a integer negative? | Lizard | What's Wrong With My Code? | 3 | 14-05-2009 07:27 PM |
| How to check an input is an integer as oppose to a float | Konnor | File I/O & Other I/O Streams | 3 | 02-02-2009 09:37 AM |