What is: sprintf("%01.2f"?

Hi,

I am editing a basket. The code where it gets the amount the customer is paying is:


$ThisAmount = sprintf("%01.2f",$_REQUEST['amount'] + $postage);

What does sprintf(“%01.2f” mean? As far as I understand all I need is:


$ThisAmount = ($_REQUEST['amount'] + $postage);

Why do I need sprintf(“%01.2f” ???

Matt.

Read This For More info on sprintf