Percentage is a way of representing a ratio. A ratio represents the
relationship in quantity/size of 2 numbers, in which one number represents a
base value and the other represents a value that is relative to that value.
For example, 2/3 is a ratio, in which 3 represents the base value, and 2
represents the value that is relative to 3. However, in a ratio, the
relative value does not necessarily have to be smaller than the base value.
For example, 3/2 represents a ratio in which the relative value is greater
than the base value.
Percentage is a way of representing any ratio as having a base value of 100.
Because a ratio can be expressed as a fraction or rational number, and any
fraction can have the denominator changed to any value by multiplying the
numerator and denominator by the same number, any ratio can be expressed as
a percentage by multiplying the numerator and denominator by (100 /
denominator), since the value of (100 / denominator) multiplied by the
denominator equals 100. So, for example, in the case of 2/3, you divide 100
by 3, getting 33.3333 as a result, and multiply this times the numerator (2
* 33.3333 = 66.6666) and the denominator (3 * 33.3333 = 100), you get
66.6666%, or 66.6666/100.
However, a percentage can be greater than 100, as in the case of 3/2, which
would be 150%. This is also equivalent to 1.5, or simply "3 divided by 2".
So, a percentage is a rational number, which might be represented by an
integer, a float, a double, a decimal, or even a function. How you handle it
in your application is really an application-specific problem, dependent
upon your application's requirements.
--
HTH,
Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP