(PHP 8 >= 8.4.0)
The RoundingMode enum is used to specify how rounding should be performed for round(), bcround(), and BcMath\Number::round().
5
,
round to the integer with the larger absolute value.
5
,
round to the integer with the smaller absolute value.
5
,
round to the even integer.
5
,
round to the odd integer.
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant