Results 1 to 3 of 3

Thread: Currency Format?

  1. #1

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Question Currency Format?

    Hello Everyone:

    I am using the following code in a Frontpage Website running HTML.

    <body>
    <% = Format( curNew, "Currency" ) %><BR>

    <p><select size="1" name="cboItem" onchange=lblCost.value=lblCost.value="$"+cboItem.value;curNew=lblQty.value*cboItem.value;lblLtotal.v alue=curNew; tabindex="1">

    The first line is suppose to make curNew a Currency Format, But I keep getting weird numbers, I.E. 14.9999999999999 instead of $14.99!

    Any Ideas?

    Thanks
    Art W.

  2. #2
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Code:
    <body>
    <% = FormatCurrency(curNew)   %><BR>
    
    <p><select size="1" name="cboItem" onchange=lblCost.value=lblCost.value="$"+cboItem.value;curNew=lblQty.value*cboItem.value;lblLtotal.value=curNew; tabindex="1">
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  3. #3

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Doesn't Work?

    Sounds good, But does not work.
    Any other Ideas?

    Thanks
    Art W.
    SLEEP: A Totally Inadequate Substation For Caffeine!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width