Hi, whilst trying to pass 2 floats into a function outside of main the values printed are different from what they are in main. Integers also passed into the function remain fine....
Code:
int main ( void ){
//blablabla
printf("\n%.2f %.2f\n ",xcent,ycent); //print fine here
float denom = denominator(n,xValues,yValues,xcent,ycent);
}
float denominator(int n, int *x, int *y, float xc, float yc){
printf("%i %i %i %i %f %f", n, x[0], y[0], xc, yc);//ints print fine, floats print messed up
//blablabla
}
wtf?