Rounding a double to turn it into an int (java)

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-16T17:05:26Z Indexed on 2010/04/16 17:13 UTC
Read the original article Hit count: 150

Filed under:
|
|
|
|

Right now i'm trying this:

    int a = round(n) ; 

where n is a double but its not working. What am i doing wrong?

© Stack Overflow or respective owner

Related posts about java

Related posts about double