MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / ToPercentUnlim

Function ToPercentUnlim

Libraries/unrar/smallfn.cpp:12–17  ·  view source on GitHub ↗

Allows the percent larger than 100.

Source from the content-addressed store, hash-verified

10
11// Allows the percent larger than 100.
12int ToPercentUnlim(int64 N1,int64 N2)
13{
14 if (N2==0)
15 return 0;
16 return (int)(N1*100/N2);
17}
18
19

Callers 3

ToPercentFunction · 0.85
ListArchiveFunction · 0.85
ListFileHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected