ใช้วิธี Math.BigMul() เพื่อค้นหาผลคูณของตัวเลข 32 บิตสองตัว
ต่อไปนี้คือตัวเลขสองตัวของเรา
int one = 345272828; int two = 887685744;
รับสินค้าเลย
long res; res = Math.BigMul(one, two);
ตัวอย่าง
using System;
using System.Globalization;
class Demo {
static void Main() {
int one = 345272828;
int two = 887685744;
long res;
res = Math.BigMul(one, two);
Console.WriteLine("{0} * {1} = {2}", one, two, res);
}
} ผลลัพธ์
345272828 * 887685744 = 306493767206164032