double d = -3.7
System.out.println(Math.round(d))
d = 3.6
System.out.println(Math.round(d))
d = 3.4
System.out.println(Math.round(d))
d = 3.5
System.out.println(Math.round(d))
d = 9487437387.8472
System.out.println(Math.round(d))
/*
run:
-4
4
3
4
9487437388
*/