Open BryanWilhite opened 2 years ago
/// <summary> /// Truncates the number. /// </summary> /// <param name="x">The x.</param> /// <remarks> /// Silverlight does not have <c>Math.Truncate()</c>. /// </remarks> public static double TruncateNumber(double x) => (x < 0 ? -1 : 1) * Math.Floor(Math.Abs(x));