rounding to 2 decimal points

Results 1 to 2 of 2

Thread: rounding to 2 decimal points

  1. #1
    Join Date
    Dec 1969
    Posts
    1,013

    Default rounding to 2 decimal points

    Hi. I am new to ASP. Is there a simple way to round a number to two places to the right of the decimal point?<BR><BR>Example: 48.6773592108<BR><BR>I need to round this to: 48.68<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969
    Posts
    915

    Default RE: rounding to 2 decimal points

    FormatNumber(number, number of decimals)<BR><BR>e.g. FormatNumber(48.6773592108, 2) = 48.68

Posting Permissions

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