자바 소수 반올림
자바 반올림 Math.round 를 써주면 된다 . Math 클래스를 이용하면 올림 내림 버리기가 가능 여러가지가 있으니 참고하자 ex) static long round(double d) Returns the result of rounding the argument to an integer. static int round(float f) Returns the result of rounding the argument to an integer. public class ggari_mahtRound { public static void main(String[] args) { int num = 156; int num1 = 10; double result = (double) (num) / (double) (num1..
2013.08.07