public class Test {
 public static void main(String[] args) {
//如何去掉小数
 double n = 2.369;
 System.out.println(Math.floor(n));
 }
 }