[VB.Net]Get % Value[Snippet]

Reputation
0
Code:
Public Function Percent(ByVal CurrVal As Long, ByVal MaxVal As Long) As Integer
    Return Int(CurrVal / MaxVal * 100 + 0.5)
End Function

Enjoy.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…