SevenZip/EventArgs.cs
/// <summary>
/// Converts a [0, 1] rate to its percent equivalent.
/// </summary>
/// <param name="doneRate">The rate of the done work.</param>
/// <returns>Percent integer equivalent.</returns>
/// <exception cref="System.ArgumentException"/>
Converts a [0, 1] rate to its percent equivalent.
Converts a [ 0 1 ] rate to its percent equivalent .
internal static byte ProducePercentDone(float doneRate)
        {
#if !WINCE
            return (byte) Math.Round(Math.Min(100*doneRate, 100), MidpointRounding.AwayFromZero);
#else
            return (byte) Math.Round(Math.Min(100*doneRate, 100));
#endif
        }
internal static byte ProducePercentDone ( float doneRate ) { if ! WINCE return ( byte ) Math . Round ( Math . Min ( 100 * doneRate , 100 ) , MidpointRounding . AwayFromZero ) ; else return ( byte ) Math . Round ( Math . Min ( 100 * doneRate , 100 ) ) ; endif }
Converts a [0, 1] rate to its percent equivalent.
Converts a [ 0 1 ] rate to its percent equivalent .
Percent integer equivalent.
Percent integer equivalent .
None
doneRate
float
The rate of the done work.
The rate of the done work .