Fixed Decimals ...

Results 1 to 3 of 3

Thread: Fixed Decimals ...

  1. #1
    Join Date
    Dec 1969

    Default Fixed Decimals ...

    How do I fix a number to a certain number of decimal places? I know there is a simple way to do it, but can&#039;t seem to find it on any of the sites.<BR><BR>Thanks in advance,<BR>JC2K

  2. #2
    Jason Guest

    Default RE: Fixed Decimals ...

    &#060;%<BR>Function RoundTo(vMemberAverage, AverageRounded)<BR> RoundTo= Int((vMemberAverage / AverageRounded)+.005) * AverageRounded<BR>End Function<BR>%&#062;<BR><BR>then to display it....<BR>Response.Write RoundTo(vMemberAverage, .005)<BR>change the number (.00005 more more decimal spots)

  3. #3
    Join Date
    Dec 1969

    Default Thanks ... I'll try that <nt>


Posting Permissions

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