import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double d= scanner.nextDouble();
//write your code here......
int i = (int)(d+0.5);
System.out.println(i);
}
}
强转之后就只取数字的整数部分,所以在强转哪里,这里把d+0.5,如果此时d的小数位<0.4,如14.99,此时i=14,如果此时d的小数位>0.5,如15.09,此时i=15