ifndef ratioIsDouble static long ratio(long x, long y) { ret y == 0 ? 0 : x/y; } endifndef static double ratio(double x, double y) { ret y == 0 ? 0 : x/y; }