forked from nique_372/BigNumberByLeo
30 lines
1.2 KiB
MQL5
30 lines
1.2 KiB
MQL5
|
|
//+------------------------------------------------------------------+
|
||
|
|
//| Sum.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()
|
||
|
|
{
|
||
|
|
//---
|
||
|
|
ulong init[];
|
||
|
|
ArrayResize(init, 1);
|
||
|
|
init[0] = ULONG_MAX - 1;
|
||
|
|
TSN::BigUInteger a(init, 1);
|
||
|
|
a += 3;
|
||
|
|
Print(a.m_v[1], a.m_v[0]);
|
||
|
|
}
|
||
|
|
//+------------------------------------------------------------------+
|