Decimals passed to functions

Results 1 to 2 of 2

Thread: Decimals passed to functions

  1. #1
    Patch Guest

    Default Decimals passed to functions

    Hi,<BR><BR>I am passing 2 numbers (a quantity and a dollar value) to a function on my page. The dollar value is $20.00 and the function picks it up as $20 without the decimal places. So after a calc has been done within the function - quantity * dollar value, the result I post to an input field says $40, not $40.00 which it should. Any suggestions....javascript isn&#039;t my strong point!!<BR><BR>Cheers,<BR><BR>Patch

  2. #2
    Join Date
    Dec 1969

    Default RE: Decimals passed to functions

    Check out Doc Javascript, he has some articles on number formatting. <BR>

Posting Permissions

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