Math.Round Problem

Fritz

Freshman
Joined
Oct 6, 2002
Messages
40
Location
switzerland
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?
 
Just perfect!

I was not very far from that, only that I parsed the X-values only , and also didn't put them back to String.


Well, great thanks, Mr. Stone
 
Back
Top