$double = 1.345; printf("%f\n", $double);
printf("%.2f", $double);
Pro tip: use ```triple backticks around text``` to write in code fences