I have this function I defined here;
static double round(double x, int d = 0) {
return (x * pow(10.0, d) - fmod(x * pow(10.0, d) - 0.5, 1.0) + 0.5) / pow(10.0, d);
}
And I have this prototype defined above the main method;
static double round(double x, int d = 0);
But if I try to call the method from within the main method with only one argument, it gives me the above syntax error. I have no idea why this is happening and it's driving me mad.