SyntaxFix
Write A Post
Hire A Developer
Questions
... And here is the rounding way which doesn't truncate. Hurried to look it up in the Java API Manual:
double d = 1234.56; long x = Math.round(d); //1235