Changed %f to %lf on line 28