Calculates a percentage value.
[Visual Basic] Shared Public Function GetPercentage( _ ByVal p_nPart As Long, _ ByVal p_nTotal As Long _ ) As Integer [C#] public static int GetPercentage( long p_nPart, long p_nTotal ); [C++] public: static int GetPercentage( __int64 p_nPart, __int64 p_nTotal ); [JScript] public static function GetPercentage( long p_nPart, long p_nTotal ): int;
The percentage of p_nPart in p_nTotal.
If p_nTotal is 0 the function returns 1.
Routines Class | Okapi.Library.Base Namespace