how i can convert an integer value to percentage value (%) , using vb.net
HibaPro -3 Junior Poster
Recommended Answers
Jump to PostA percentage of what? Are you having problems with the calculation or with the conversion (formatting) for display?
Jump to PostLet's say you have a group of 147 people and 36 are female. That means that the fraction of people who are female is 36/147. The percentage of females is one hundred times that. So
Dim people As Integer = 147 Dim female As Integer = 36 …
All 7 Replies
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
HibaPro -3 Junior Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
HibaPro -3 Junior Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
HibaPro -3 Junior Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.