format(string,sizeof(string),"%.4f, %.4f, %.4f ", X, Y, Z); //instead of %f do %.(num of digits)f
%0.f
"%.0f"