Math.BigMul Methode

Definitie

Overloads

Name Description
BigMul(UInt64, UInt64, UInt64)

Produceert het volledige product van twee niet-ondertekende 64-bits getallen.

BigMul(Int64, Int64, Int64)

Produceert het volledige product van twee 64-bits getallen.

BigMul(UInt64, UInt64)

Produceert het volledige product van twee niet-ondertekende 64-bits getallen.

BigMul(Int32, Int32)

Produceert het volledige product van twee 32-bits getallen.

BigMul(Int64, Int64)

Produceert het volledige product van twee 64-bits getallen.

BigMul(UInt32, UInt32)

Produceert het volledige product van twee niet-ondertekende 32-bits getallen.

BigMul(UInt64, UInt64, UInt64)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Belangrijk

Deze API is niet CLS-conform.

Produceert het volledige product van twee niet-ondertekende 64-bits getallen.

public:
 static System::UInt64 BigMul(System::UInt64 a, System::UInt64 b, [Runtime::InteropServices::Out] System::UInt64 % low);
[System.CLSCompliant(false)]
public static ulong BigMul(ulong a, ulong b, out ulong low);
[<System.CLSCompliant(false)>]
static member BigMul : uint64 * uint64 * uint64 -> uint64
Public Shared Function BigMul (a As ULong, b As ULong, ByRef low As ULong) As ULong

Parameters

a
UInt64

Het eerste getal dat moet worden vermenigvuldigd.

b
UInt64

Het tweede getal dat moet worden vermenigvuldigd.

low
UInt64

Wanneer deze methode wordt geretourneerd, bevat de lage 64-bits versie van het product van de opgegeven getallen.

Retouren

De hoge 64-bits versie van het product van de opgegeven getallen.

Kenmerken

Van toepassing op

BigMul(Int64, Int64, Int64)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Produceert het volledige product van twee 64-bits getallen.

public:
 static long BigMul(long a, long b, [Runtime::InteropServices::Out] long % low);
public static long BigMul(long a, long b, out long low);
static member BigMul : int64 * int64 * int64 -> int64
Public Shared Function BigMul (a As Long, b As Long, ByRef low As Long) As Long

Parameters

a
Int64

Het eerste getal dat moet worden vermenigvuldigd.

b
Int64

Het tweede getal dat moet worden vermenigvuldigd.

low
Int64

Wanneer deze methode wordt geretourneerd, bevat de lage 64-bits versie van het product van de opgegeven getallen.

Retouren

De hoge 64-bits versie van het product van de opgegeven getallen.

Van toepassing op

BigMul(UInt64, UInt64)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Belangrijk

Deze API is niet CLS-conform.

Produceert het volledige product van twee niet-ondertekende 64-bits getallen.

public:
 static UInt128 BigMul(System::UInt64 a, System::UInt64 b);
[System.CLSCompliant(false)]
public static UInt128 BigMul(ulong a, ulong b);
[<System.CLSCompliant(false)>]
static member BigMul : uint64 * uint64 -> UInt128
Public Shared Function BigMul (a As ULong, b As ULong) As UInt128

Parameters

a
UInt64

Het eerste getal dat moet worden vermenigvuldigd.

b
UInt64

Het tweede getal dat moet worden vermenigvuldigd.

Retouren

Het volledige product van de opgegeven getallen.

Kenmerken

Van toepassing op

BigMul(Int32, Int32)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Produceert het volledige product van twee 32-bits getallen.

public:
 static long BigMul(int a, int b);
public static long BigMul(int a, int b);
static member BigMul : int * int -> int64
Public Shared Function BigMul (a As Integer, b As Integer) As Long

Parameters

a
Int32

Het eerste getal dat moet worden vermenigvuldigd.

b
Int32

Het tweede getal dat moet worden vermenigvuldigd.

Retouren

Het getal dat het product van de opgegeven getallen bevat.

Voorbeelden

In het volgende voorbeeld ziet u hoe de BigMul methode wordt gebruikt om het product van twee gehele getallen te berekenen.

// This example demonstrates Math.BigMul()
using System;

class Sample
{
    public static void Main()
    {
    int int1 = Int32.MaxValue;
    int int2 = Int32.MaxValue;
    long 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
*/
// This example demonstrates Math.BigMul()
open System

let int1 = Int32.MaxValue
let int2 = Int32.MaxValue

let longResult = Math.BigMul(int1, int2)
printfn "Calculate the product of two Int32 values:"
printfn $"{int1} * {int2} = {longResult}"

// This example produces the following results:
// Calculate the product of two Int32 values:
// 2147483647 * 2147483647 = 4611686014132420609
' This example demonstrates Math.BigMul()
Class Sample
   Public Shared Sub Main()
      Dim int1 As Integer = Int32.MaxValue
      Dim int2 As Integer = Int32.MaxValue
      Dim longResult As Long
      '
      longResult = Math.BigMul(int1, int2)
      Console.WriteLine("Calculate the product of two Int32 values:")
      Console.WriteLine("{0} * {1} = {2}", int1, int2, longResult)
   End Sub
End Class
'
'This example produces the following results:
'Calculate the product of two Int32 values:
'2147483647 * 2147483647 = 4611686014132420609
'

Van toepassing op

BigMul(Int64, Int64)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Produceert het volledige product van twee 64-bits getallen.

public:
 static Int128 BigMul(long a, long b);
public static Int128 BigMul(long a, long b);
static member BigMul : int64 * int64 -> Int128
Public Shared Function BigMul (a As Long, b As Long) As Int128

Parameters

a
Int64

Het eerste getal dat moet worden vermenigvuldigd.

b
Int64

Het tweede getal dat moet worden vermenigvuldigd.

Retouren

Het volledige product van de opgegeven getallen.

Van toepassing op

BigMul(UInt32, UInt32)

Bron:
Math.cs
Bron:
Math.cs
Bron:
Math.cs

Belangrijk

Deze API is niet CLS-conform.

Produceert het volledige product van twee niet-ondertekende 32-bits getallen.

public:
 static System::UInt64 BigMul(System::UInt32 a, System::UInt32 b);
[System.CLSCompliant(false)]
public static ulong BigMul(uint a, uint b);
[<System.CLSCompliant(false)>]
static member BigMul : uint32 * uint32 -> uint64
Public Shared Function BigMul (a As UInteger, b As UInteger) As ULong

Parameters

a
UInt32

Het eerste getal dat moet worden vermenigvuldigd.

b
UInt32

Het tweede getal dat moet worden vermenigvuldigd.

Retouren

Het getal dat het product van de opgegeven getallen bevat.

Kenmerken

Van toepassing op