Math.BigMul メソッドとは? わかりやすく解説

Math.BigMul メソッド

2 つ32 ビット数値の完全な積を生成します

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function BigMul
 ( _
    a As Integer, _
    b As Integer _
) As Long
public static long BigMul (
    int a,
    int b
)
public:
static long long BigMul (
    int a, 
    int b
)
public static long BigMul (
    int a, 
    int b
)
public static function BigMul
 (
    a : int, 
    b : int
) : long

パラメータ

a

乗算する最初の Int32。

b

乗算する 2 番目の Int32

戻り値
指定した数値の積を格納している Int64。

使用例使用例
' This example demonstrates Math.BigMul()
Imports System

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 'Main
End Class 'Sample
'
'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()
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()
import System.*;

class Sample
{
    public static void main(String[]
 args)
    {
        int int1 = Int32.MaxValue;
        int int2 = Int32.MaxValue;
        long longResult;
        //
        longResult = System.Math.BigMul(int1, int2);
        Console.WriteLine("Calculate the product of two Int32 values:");
        Console.WriteLine("{0} * {1} = {2}", System.Convert.ToString(int1),
 
            System.Convert.ToString(int2), System.Convert.ToString(longResult));
    } //main
} //Sample

/*
This example produces the following results:
Calculate the product of two Int32 values:
2147483647 * 2147483647 = 4611686014132420609
*/
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Math.BigMul メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Math.BigMul メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS