In MySQL, the ROUND()
function allows you to round a number up or down to a given number of decimal places.
The way it works is, you provide the number as an argument, and you have the option of choosing how many decimal places to round the number to. If you don’t specify the number of decimal places, the result will have no decimal places.