BusinessLogic.Logic.Points.PointsCalculator.RoundUpIfNonNegligible C# (CSharp) Method

RoundUpIfNonNegligible() private static method

private static RoundUpIfNonNegligible ( decimal valueToRound ) : int
valueToRound decimal
return int
        private static int RoundUpIfNonNegligible(decimal valueToRound)
        {
            decimal floor = Math.Floor(valueToRound);
            return (int)((valueToRound - floor) > (decimal)0.1 ? floor + 1 : floor);
        }
    }