BigNumberByLeo/Test/CMul.mq5

31 lines
1.2 KiB
MQL5
Raw Permalink Normal View History

2026-08-18 10:32:32 -05:00
//+------------------------------------------------------------------+
//| CMul.mq5 |
//| Copyright 2026, Niquel Mendoza |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza"
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include "..\\Src\\Base\\Main.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
2026-08-23 17:38:27 -05:00
TSN::BigUInteger a("9223372036854775808", 10);
2026-08-18 10:32:32 -05:00
TSN::BigUInteger b = a * 2;
//---
b *= a; // (1,0)*(max) como 10*9
Print(b.m_v[1], ",", b.m_v[0]);
}
//+------------------------------------------------------------------+