www.webdeveloper.com
Results 1 to 3 of 3

Thread: Two decimal Accuracy

Hybrid View

  1. #1
    Join Date
    Jun 2003
    Location
    India
    Posts
    77

    Two decimal Accuracy

    i am having the variable 'a' and its value is 12

    when i display it in browser
    i want to show it as 12.00
    in Javascript there is a option toFixed(2)
    But i need ASP script code

    thanks

  2. #2
    Join Date
    Apr 2003
    Location
    netherlands
    Posts
    44
    Do you mean this?
    a = a + ".00"

    It sas
    12 = 12 + ".00"

    will be
    12.00

  3. #3
    Join Date
    Jan 2003
    Location
    USA
    Posts
    688
    FormatNumber(MyVariable, 2)
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles