@driesvints Just wanted to point out that such rounding is not always correct since round function poorly handles float values. Example:
Instead we could use bcmath function or return float value as before and leave this issue for the implementation app.
@driesvints Just wanted to point out that such rounding is not always correct since round function poorly handles float values. Example: Instead we could use bcmath function or return float value as before and leave this issue for the implementation app.