Formatting the decimals
From: Mallik (mallikarjunk_at_softima.com)
Date: 01/29/04
- Next message: Owen Cook: "Re: Formatting the decimals"
- Previous message: Michael W . Cocke: "print outbut being buffered..."
- Next in thread: Owen Cook: "Re: Formatting the decimals"
- Reply: Owen Cook: "Re: Formatting the decimals"
- Reply: John W. Krahn: "Re: Formatting the decimals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Owen Cook: "Re: Formatting the decimals"
- Previous message: Michael W . Cocke: "print outbut being buffered..."
- Next in thread: Owen Cook: "Re: Formatting the decimals"
- Reply: Owen Cook: "Re: Formatting the decimals"
- Reply: John W. Krahn: "Re: Formatting the decimals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]