Use sprintf/printf:
$curr = sprintf('%.2f', $curr); [download]
It rounds.
In reply to Re: How to give format to numbers? by ikegami in thread How to give format to numbers? by Anonymous Monk