Home / PHP Tips Generated By ChatGPT / Rounding Numbers in PHP Round a floating-point number with round(). Source Code echo round(3.1415926535, 2); // Outputs: 3.14