//+------------------------------------------------------------------+ //| 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); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+