SyntaxFix
Write A Post
Hire A Developer
Questions
This will work as long as your number is a whole number:
double dnexp = 12345678; System.out.println("dexp: " + (long)dexp);
If the double variable has precision after the decimal point it will truncate it.