롱엔서질문

sanghoon Reply 8 years 30 weeks ago
double A = (n*Math.pow(s, 2))/(4*Math.tan(Math.PI/n)); double S = Math.floor(A*100); System.out.println(A/100); 이건안되고 printf(%.2f,S)를 쓰면 되고 또 S를 잡지않고 printf(%.2f,A) 하면 롱엔서 뜨는이유가 뭔가요?
cjmp1 Reply 8 years 30 weeks ago
실수형을 소수점제약없이 출력하면 부동소수점형태로 출력합니다