Integer Math.Least Common Multiple Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Least | Returns the least common multiple of two integers. |
Least | Returns the least common multiple of two integers. |
Least | Returns the least common multiple of two integers. |
Least | Returns the least common multiple of two integers. |
Least | Returns the least common multiple of two integers. |
LeastCommonMultiple(BigInteger, BigInteger)
Returns the least common multiple of two integers.
public static BigInteger LeastCommonMultiple(
BigInteger a,
BigInteger b
)
Parameters
- a BigInteger
- A BigInteger.
- b BigInteger
- A BigInteger.
Return Value
BigIntegerThe least common multiple of a and b.
LeastCommonMultiple(Decimal, Decimal)
Returns the least common multiple of two integers.
public static decimal LeastCommonMultiple(
decimal a,
decimal b
)
Parameters
Return Value
DecimalThe least common multiple of a and b.
LeastCommonMultiple(Int16, Int16)
Returns the least common multiple of two integers.
public static int LeastCommonMultiple(
short a,
short b
)
Parameters
Return Value
Int32The least common multiple of a and b.
LeastCommonMultiple(Int32, Int32)
Returns the least common multiple of two integers.
public static long LeastCommonMultiple(
int a,
int b
)
Parameters
Return Value
Int64The least common multiple of a and b.
LeastCommonMultiple(Int64, Int64)
Returns the least common multiple of two integers.
public static decimal LeastCommonMultiple(
long a,
long b
)
Parameters
Return Value
DecimalA Decimalthat is the least common multiple of a and b.