in reply to How to give format to numbers?

Use sprintf/printf:

$curr = sprintf('%.2f', $curr);

It rounds.