This documentation is archived and is not being maintained.
Math::BigMul Method
Visual Studio 2010
Produces the full product of two 32-bit numbers.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- a
- Type: System::Int32
The first number to multiply.
- b
- Type: System::Int32
The second number to multiply.
The following example demonstrates the use of the BigMul method to calculate the product of two integer values.
// This example demonstrates Math.BigMul() using namespace System; int main() { int int1 = Int32::MaxValue; int int2 = Int32::MaxValue; Int64 longResult; // longResult = Math::BigMul( int1, int2 ); Console::WriteLine( "Calculate the product of two Int32 values:" ); Console::WriteLine( "{0} * {1} = {2}", int1, int2, longResult ); } /* This example produces the following results: Calculate the product of two Int32 values: 2147483647 * 2147483647 = 4611686014132420609 */
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: