|
Get Percent Value
Author:
Tim Hartwig
|
Programming Language:
VB.NET |
Rating:
not yet rated
|
Views:
737 |
Description:
Calculates the Percentvalue of a given value depending on a maximum value.
|
|
| Visual Basic |
1
2
3
|
Public Function Percent(ByVal CurrVal As Long, ByVal MaxVal As Long) As Integer
Return Int(CurrVal / MaxVal * 100 + 0.5)
End Function
|
|
|
This Snippets could be interesting for you:
|
|
|
|
|
|
|
|
Comments:
(Please log in to wrtite an comment.)
|
|
|