/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static uint LeastCommonMultiple(uint one, uint two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.UInt32)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static ulong LeastCommonMultiple(ulong one, ulong two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.UInt64)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static ushort LeastCommonMultiple(ushort one, ushort two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.UInt16)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static float LeastCommonMultiple(float one, float two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.Single)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static sbyte LeastCommonMultiple(sbyte one, sbyte two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.SByte)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static double LeastCommonMultiple(double one, double two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.Double)); }
/// <summary> /// Finds the least common multiple of two numbers. /// The least common multiple is the largest positive integer that divides the numbers without a remainder. /// </summary> /// <param name="one">The one.</param> /// <param name="two">The two.</param> /// <returns>The least common multiple of the two numbers.</returns> public static decimal LeastCommonMultiple(decimal one, decimal two) { return(AdvancedMath.LeastCommonMultiple(one, two, Arithmetics.Decimal)); }