Formatting single numbers

Results 1 to 3 of 3

Thread: Formatting single numbers

  1. #1
    Neil Burton Guest

    Default Formatting single numbers

    I want to format displayed price information taken from a database field. I want the prices displayed with two decimal places i.e. 10 shows as 10.00 and 1.5 shows as 1.50 etc.. Is there a simple bit of script out there that can do this for me?

  2. #2
    Rob Guest

    Default RE: Formatting single numbers

  3. #3
    Join Date
    Dec 1969

    Default RE: Formatting single numbers

    You can use FormatNumber(variable, x) or FormatCurrency(variable), where x is the number of decimals. The Currency will give you 2 decimals, as well as a $.<BR><BR><BR>HTH<BR><BR>Jerry

Posting Permissions

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