Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 /// <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));
 }
Exemple #5
0
 /// <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));
 }
Exemple #6
0
 /// <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));
 }
Exemple #7
0
 /// <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));
 }