/// <summary> /// Rounds the given double to the 2 digits /// </summary> /// <param name="initialValue">The number to round</param> /// <returns>Rounded number</returns> public static double Round(this double initialValue) { return(DoubleExtensionMethods.Round(initialValue, 2)); }
/// <summary> /// Method for checking if two doubles are equal with difference given by <see cref="MaximumDifferenceAllowed"/> /// </summary> /// <param name="initialValue">The first double value</param> /// <param name="value">The second double value</param> /// <returns>Returns true if the given number are equal with difference given by <see cref="MaximumDifferenceAllowed"/></returns> public static bool IsApproximatelyEqualTo(this double initialValue, double value) { var result = DoubleExtensionMethods.IsApproximatelyEqualTo(initialValue, value, MaximumDifferenceAllowed); return(result); }