Closed tyteen4a03 closed 2 years ago
How do I round a price up/down to the nearest integer as an operation? round() seems to be a function but it's private so I can't use it in userland.
round()
You pass the rounding mode with operations like multiply and divide. Further, see.
multiply
divide
$money->multiply(1.2, Money::ROUND_HALF_UP);
How do I round a price up/down to the nearest integer as an operation?
round()
seems to be a function but it's private so I can't use it in userland.