Corrected %d (int) to %f (double)