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