namespaceFoo.Common.Maths.Interfaces { publicinterfaceIPercentageCalculator { ///<summary> /// Calculate the score achieved as a percentage out of the given value `outOf` ///</summary> ///<param name="scoreAchieved">Example: 73</param> ///<param name="outOf">Example: 100</param> ///<returns>73.00 as the default decimal spacing is .00 (2 digits)</returns> doubleGetPercentage(int scoreAchieved, int outOf);
///<summary> /// Calculate the score achieved as a percentage out of the given value `outOf` ///</summary> ///<param name="scoreAchieved">Example: 73</param> ///<param name="outOf">Example: 100</param> ///<param name="digits">Example: 3</param> ///<returns>73.000</returns> doubleGetPercentage(int scoreAchieved, int outOf, int digits); } }