By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

Creating Percentages

P: n/a
Hi,

When showing a percentage, how do you remove the all the digits to the right
of the decimal point?
I've been having trouble with this.

Thanks,
Roshawn
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Roshawn" <ud****@bellsouth.net> wrote in
news:#P**************@TK2MSFTNGP09.phx.gbl:
When showing a percentage, how do you remove the all the digits to the
right of the decimal point?


Use the Math.Round function.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #2

P: n/a
round it or cast to int

intVar = CType(dblVar, Integer)

"Roshawn" <ud****@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

When showing a percentage, how do you remove the all the digits to the right of the decimal point?
I've been having trouble with this.

Thanks,
Roshawn

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.721 / Virus Database: 477 - Release Date: 7/16/2004
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.