User541471401 posted
I have this code here ( sorry if its done wrong Ive just decided to learn to code 3 days ago) and am getting the right value but i need to get the decimal point down to the tenths spot. How would I go about that ? (feel free to correct anything else that
you may see wrong as it helps me learn)
If TxtPly1AB.Text = "" Then Exit Sub
If TxtBaseBall.Text = "" Then Exit Sub
If TxtPly1HitBy.Text = "" Then Exit Sub
If TxtPly1Hits.Text = "" Then Exit Sub
TxtPly1OB.Text = ((Val(TxtPly1Hits.Text) + Val(TxtBaseBall.Text) + Val(TxtPly1HitBy.Text)) / (Val(TxtPly1AB.Text) + Val(TxtBaseBall.Text) + Val(TxtPly1HitBy.Text))).ToString