formatnumber equivalant in Javascript

Results 1 to 2 of 2

Thread: formatnumber equivalant in Javascript

  1. #1
    Join Date
    Dec 1969

    Default formatnumber equivalant in Javascript

    Hi,<BR><BR>can anyone tell me what is vbscripts formatnumber equivalent in javascript.<BR><BR>tval=60.783333 if I want to format the number with just 2 decimals in ASP i do this tval=formatnumber(tval,2) how to do this in javascript.<BR><BR>Any help will be greatly appreciated.

  2. #2
    Join Date
    Dec 1969

    Default Have to write it yourself...

    But if you will SEARCH the archives of this same forum (SEARCH is a link at top right of this page), you&#039;ll find this same question asked many times and answered more than a couple of times.<BR><BR>If you can&#039;t find anything, then and the JS FAQ.<BR><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