본문 바로가기

Programming/JAVA

[java] Double > String, Double > Int 형변환

String 변수 = String.valueOf(Math.round(Double변수));

 

int 변수 = Integer.parseInt(String.valueOf(Math.round(Double변수)));