BigNumberByLeo/Test/Sum.mq5

30 lines
1.2 KiB
MQL5
Raw Permalink Normal View History

2026-08-17 21:31:34 -05:00
//+------------------------------------------------------------------+
//| 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]);
}
//+------------------------------------------------------------------+