$double = 1.345;
printf("%f\n", $double);
to print 2 digits after comma use %.2f or any number
printf("%.2f", $double);
by Vasil Grdzelishvili
2 years ago
PHP
console
0
Pro tip: use ```triple backticks around text``` to write in code fences