Fritz
Active member
I have several textboxes to pick up the value of other textboxes and transform the values into percentage. It goes like that:
X1.Text = Y1.Text / Z.Text * 100 Z is 100%
X2.Text = Y2.Text / Z.Text * 100
X3.Text = Y3.Text / Z.Text * 100
So far it works, but now I would like to round the values in X1, X2 and X3 to 0 or 2 decimals. And I just don find any useful example. Can anybody give me a hint?
X1.Text = Y1.Text / Z.Text * 100 Z is 100%
X2.Text = Y2.Text / Z.Text * 100
X3.Text = Y3.Text / Z.Text * 100
So far it works, but now I would like to round the values in X1, X2 and X3 to 0 or 2 decimals. And I just don find any useful example. Can anybody give me a hint?