don't really understand why ceil & floor accepts integer(or long, float) as parameter. While the following code with no luck to compile:
(creating a funciton a and hope it can accept float / double)
public class MathTest2 {
public static void main (
String args[]) {
System.out.println(a(1f));
System.out.println(a(1d));
System.out.println(a(1L));
System.out.println(a(1));
}
static double a(int in) {
return in;
}
}