In case you were wondering where are HALF_UP and HALF_DOWN here:
- Half up is AwayFromZero
- Half down is TowardsZero(PHP 8 >= 8.4.0)
L'énumération RoundingMode est utilisée pour spécifier comment l'arrondissement doit être effectué pour round(), bcround(), et BcMath\Number::round().
5,
arrondit à l'entier avec la valeur absolue la plus grande.
5,
arrondit à l'entier avec la valeur absolue la plus petite.
5,
arrondit à l'entier pair.
5,
arrondit à l'entier impair.
In case you were wondering where are HALF_UP and HALF_DOWN here:
- Half up is AwayFromZero
- Half down is TowardsZero