string.format()
// format(format, args) : 인자로 전달된 format에 맞게 문자열 return
double pi = 3.141592;
System.out.println(Stirng.format("%.3f", n)); // 소수점 아래 3째자리까지 출력
Math.round()
round(float a) : 인자로 전달된 float를 가까운 int로 return
Math.round(3.1) // 3을 return