View Single Post
Old 08-22-2008   #2 (permalink)
Tom Lavedas


 
 

Re: Display Number (Amount) Properly

On Aug 22, 7:54 am, Leona Leal Educator
<LeonaLealEduca...@xxxxxx> wrote:
Quote:

> Kind of new at this so I do not know all of the correct script keywords.
>
> How do you display an amount as currency properly when the number is 5.6
>
> I have Response.Write "$" & Amount & " is what you owe the school district"
>
> Sorry, I would like for it to display as $5.60. It currrently display as
> $5.6 I have not done enough scripting to learn how to do this. Naturally
> when the amount does not end in 0 it works.
>
> Thank You in Advance
>
> Grandma Leona
try ...

Response.Write "$" & formatnumber(Amount, 2, true, true, true) _
& " is what you owe the school district"

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
My System SpecsSystem Spec