Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...