Results 1 to 2 of 2

Thread: Deciaml Place Question (Reiterated)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Maybe I'm explaining this wrong.
    This is what I have now:

    txtAve.Text = (Val(txt1a) + Val(txt2a)) / (Val(txt1) + Val(txt2))

    Currently when you click the cmd button that calculates txtAve's result, you get multiple positions past the decimal. I want to limit how many spaces. ex: 0000.000 or .00

    I'm sorry if I've made this so confusing.

    Thanks again.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    txtAve.Text = Round((Val(txt1a) + Val(txt2a)) / (Val(txt1) + Val(txt2)),2)

    i.e. Round(numberToRound,numberAfterDecimal)

Posting Permissions

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

Click Here to Expand Forum to Full Width