I was doing some testing in MySQL and then came the need to have to round a number to the largest. It would be something like:
if($numero == 1.5){
$numero = 2;
}
Although I could do this, I wanted to avoid making if
/ else
.
Is there a function that does this in MySQL? For example a function that if the value entered was 1.5 rounds to the largest, for 2 in the case?