In PHP how would i round up the value 22.04496 so that it becomes 22.05? It seems that round(22.04496,2) = 22.04. Should it not be 22.05??
Thanks in advance
In PHP how would i round up the value 22.04496 so that it becomes 22.05? It seems that round(22.04496,2) = 22.04. Should it not be 22.05??
Thanks in advance
Why should it be 22.05
? The third decimal is less than 5, hence when you round it to 2 decimal precision it's rounded down to 22.04