public class MainClass { public static void main(String[] argv) { float frads = 2.34567f; double d; d = cos(frads); // Pass float to method // that expects double } static double cos(double d) { return d; } }