IntegerMath.LeastCommonMultiple Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

LeastCommonMultiple(BigInteger, BigInteger) Returns the least common multiple of two integers.
LeastCommonMultiple(Decimal, Decimal) Returns the least common multiple of two integers.
LeastCommonMultiple(Int16, Int16) Returns the least common multiple of two integers.
LeastCommonMultiple(Int32, Int32) Returns the least common multiple of two integers.
LeastCommonMultiple(Int64, Int64) Returns the least common multiple of two integers.

LeastCommonMultiple(BigInteger, BigInteger)

Returns the least common multiple of two integers.
C#
public static BigInteger LeastCommonMultiple(
	BigInteger a,
	BigInteger b
)

Parameters

a  BigInteger
A BigInteger.
b  BigInteger
A BigInteger.

Return Value

BigInteger
The least common multiple of a and b.

LeastCommonMultiple(Decimal, Decimal)

Returns the least common multiple of two integers.
C#
public static decimal LeastCommonMultiple(
	decimal a,
	decimal b
)

Parameters

a  Decimal
A Decimal.
b  Decimal
A Decimal.

Return Value

Decimal
The least common multiple of a and b.

LeastCommonMultiple(Int16, Int16)

Returns the least common multiple of two integers.
C#
public static int LeastCommonMultiple(
	short a,
	short b
)

Parameters

a  Int16
An integer.
b  Int16
An integer.

Return Value

Int32
The least common multiple of a and b.

LeastCommonMultiple(Int32, Int32)

Returns the least common multiple of two integers.
C#
public static long LeastCommonMultiple(
	int a,
	int b
)

Parameters

a  Int32
An integer.
b  Int32
An integer.

Return Value

Int64
The least common multiple of a and b.

LeastCommonMultiple(Int64, Int64)

Returns the least common multiple of two integers.
C#
public static decimal LeastCommonMultiple(
	long a,
	long b
)

Parameters

a  Int64
A long (64 bit) integer.
b  Int64
A long (64 bit) integer.

Return Value

Decimal
A Decimalthat is the least common multiple of a and b.

See Also