Spontaneous.DataModel.MedalProgress.GetProgressPercentage C# (CSharp) Method

GetProgressPercentage() public method

public GetProgressPercentage ( ) : int
return int
        public int GetProgressPercentage()
        {
            double percentage = this.totalPointsRequired - this.pointsRequired;
            percentage = percentage / (double)this.totalPointsRequired;
            percentage = percentage * 100;
            int returnValue = Convert.ToInt32(percentage);
            return returnValue;
        }