Formatting the decimals

From: Mallik (mallikarjunk_at_softima.com)
Date: 01/29/04


To: "Perl Beginners" <beginners@perl.org>
Date: Thu, 29 Jan 2004 14:31:32 +0530

Dear Friends,

How do I format the decimals, i.e, if there is no
decimal part, then add .00, if there is one decimal,
then add '0'.

For eg., how to convert 123 to 123.00
and 123.5 to 123.50.

Thanks in advance,
Mallik.