BigNumberByLeo/Test/Misce.mq5
Nique_372 01e31047cb
2026-09-10 09:28:32 -05:00

40 lines
1.4 KiB
MQL5

//+------------------------------------------------------------------+
//| Misce.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\\Uint.mqh"
#include "..\\Src\\Utils\\Main.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
TSN::BigUInteger integer("128", 10);
uchar bytes[];
const int t = integer.ToDERFormat(bytes, 0);
ArrayPrint(bytes,0,"",0,t);
string out = "";
TSN::CNumberUtils::BytesToHexLower(bytes, t, out);
Print("0x",out);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+