Math.BigMul Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
BigMul(UInt64, UInt64, UInt64) |
İmzasız iki 64 bit sayının tam çarpımını üretir. |
BigMul(Int64, Int64, Int64) |
İki adet 64 bitlik sayının tam çarpımını üretir. |
BigMul(UInt64, UInt64) | |
BigMul(Int32, Int32) |
İki adet 32 bit sayının tam çarpımını üretir. |
BigMul(Int64, Int64) | |
BigMul(UInt32, UInt32) |
BigMul(UInt64, UInt64, UInt64)
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
Önemli
Bu API, CLS uyumlu değildir.
İmzasız iki 64 bit sayının tam çarpımını üretir.
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
Parametreler
- a
- UInt64
Çarpmak için ilk sayı.
- b
- UInt64
Çarpmak için ikinci sayı.
- low
- UInt64
Bu yöntem döndürdüğünde, belirtilen sayıların çarpımının düşük 64 bitini içerir.
Döndürülenler
Belirtilen sayıların çarpımının en yüksek 64 biti.
- Öznitelikler
Şunlara uygulanır
BigMul(Int64, Int64, Int64)
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
İki adet 64 bitlik sayının tam çarpımını üretir.
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
Parametreler
- a
- Int64
Çarpmak için ilk sayı.
- b
- Int64
Çarpmak için ikinci sayı.
- low
- Int64
Bu yöntem döndürdüğünde, belirtilen sayıların çarpımının düşük 64 bitini içerir.
Döndürülenler
Belirtilen sayıların çarpımının en yüksek 64 biti.
Şunlara uygulanır
BigMul(UInt64, UInt64)
Önemli
Bu API, CLS uyumlu değildir.
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
Parametreler
- a
- UInt64
- b
- UInt64
Döndürülenler
- Öznitelikler
Şunlara uygulanır
BigMul(Int32, Int32)
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
- Kaynak:
- Math.cs
İki adet 32 bit sayının tam çarpımını üretir.
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
Parametreler
- a
- Int32
Çarpmak için ilk sayı.
- b
- Int32
Çarpmak için ikinci sayı.
Döndürülenler
Belirtilen sayıların çarpımını içeren sayı.
Örnekler
Aşağıdaki örnek, iki tamsayı değerinin çarpımını hesaplamak için BigMul yönteminin kullanımını gösterir.
// 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
*/
// 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
'
Şunlara uygulanır
BigMul(Int64, Int64)
BigMul(UInt32, UInt32)
Önemli
Bu API, CLS uyumlu değildir.
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
Parametreler
- a
- UInt32
- b
- UInt32
Döndürülenler
- Öznitelikler
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin