Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27158

[RESOLVED] Percentage Integer Apears

$
0
0
I'm kind of stumped on this one. I have a datatable, and it has 5 columns. Each column is filled with integers. I can't think of a way to get the percentage of how many times that integer appears. For example, if column1 has these values:
Quote:

1
1
2
3
4
5
6
7
8
9
1 appears 20% of the time and every other number appears 10% of the time.


For whatever reason I'm having a brain fart and can't think of how to work it out.

Viewing all articles
Browse latest Browse all 27158

Trending Articles