hwg-languages archives | Jul 2000 | new search | results | previous | next |
Re: sorry perl: quick dollars and centsby "Marko Schilde" <webmaster(at)planetdiablo.de> |
|
How about $properformat = sprintf("%.2f", $amount); ? -M ----- Original Message ----- From: christopher l. filkins <design(at)chronotope.com> To: <hwg-languages(at)hwg.org> Sent: Wednesday, July 19, 2000 1:33 PM Subject: sorry perl: quick dollars and cents > {sorry i should have specified i'm using perl} > > Anyone have a quick formula for making sure that $8.976 or $8.9 always come > out to written in proper notation? > > I very much appreciate it. > > Christopher > >
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA