Re: sorry perl: quick dollars and cents

by "Marko Schilde" <webmaster(at)planetdiablo.de>

 Date:  Wed, 19 Jul 2000 14:43:13 -0700
 To:  "christopher l. filkins" <design(at)chronotope.com>,
<hwg-languages(at)hwg.org>
 References:  chronotope
  todo: View Thread, Original
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