int i = Math.round(1.5F); // 2
String str = String.format("%.3f", 1.2345678); // 1.235
CC-BY-SA 3.0 · Powered by MediaWiki
개인정보처리방침 · ABOUT