You probably don't want to be using C variadics. Instead try the typed one:
float mean(float[] input...) { // you don't want to divide by zero if (input.length == 0) return 0; float temp = 0; // floats and double initialize to NaN by default, not zero. foreach(value; input) { temp += value; } return temp / input.length; }