Skip to content

Glossary: PHP Basics

round()

Also written: round

A function that rounds a number to a given number of decimal places, such as `round(16.456, 2)` giving 16.46.

Where the book teaches it

Related terms

number_format()float