two digits after decimal point in php

Solutions on MaxInterview for two digits after decimal point in php by the best coders in the world

showing results for - "two digits after decimal point in php"
Héloïse
31 Jun 2020
1echo round(520.34345, 2);   // 520.34
2echo round(520.3, 2);       // 520.3
3echo round(520, 2);         // 520
4