C# Tutorial C# Advanced C# Resources
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

C# - Math BigMul() Method



The C# Math BigMul() method returns full product of two 32 bit numbers.

Syntax

public static long BigMul (int x, int y);

Parameters

x Specify first value to multiply.
y Specify second value to multiply.

Return Value

Returns full product of two 32 bit numbers.

Example:

In the example below, BigMul() method returns full product of two 32 bit numbers.

using System;

class MyProgram {
  static void Main(string[] args) {
    Console.WriteLine(Math.BigMul(2255, 33897)); 
    Console.WriteLine(Math.BigMul(-2256, 54567)); 
    Console.WriteLine(Math.BigMul(2123, 35688)); 
  }
}

The output of the above code will be:

76437735
-123103152
75765624

❮ C# Math Methods

5