2026-08-23 17:38:27 -05:00 | | | //+------------------------------------------------------------------+
|
| | | //| 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
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| |
|
| | | //+------------------------------------------------------------------+
|
2026-09-10 09:28:32 -05:00 | | | #include "..\\Src\\Base\\Uint.mqh"
|
2026-08-23 17:38:27 -05:00 | | | #include "..\\Src\\Utils\\Main.mqh"
|
| | |
|
| | |
|
| | | //+------------------------------------------------------------------+
|
| | | //| Script program start function |
|
| | | //+------------------------------------------------------------------+
|
| | | void OnStart()
|
| | | {
|
| | | //---
|
2026-08-29 11:36:58 -05:00 | | | TSN::BigUInteger integer("128", 10);
|
2026-08-23 19:05:20 -05:00 | | |
|
| | |
|
2026-08-23 17:38:27 -05:00 | | | uchar bytes[];
|
2026-08-29 11:36:58 -05:00 | | | const int t = integer.ToDERFormat(bytes, 0);
|
2026-08-23 19:05:20 -05:00 | | |
|
2026-08-29 11:36:58 -05:00 | | | ArrayPrint(bytes,0,"",0,t);
|
2026-08-23 17:38:27 -05:00 | | |
|
| | | string out = "";
|
| | | TSN::CNumberUtils::BytesToHexLower(bytes, t, out);
|
2026-08-29 11:36:58 -05:00 | | | Print("0x",out);
|
2026-08-24 09:56:46 -05:00 | | |
|
| | |
|
2026-08-23 17:38:27 -05:00 | | | }
|
| | | //+------------------------------------------------------------------+
|
2026-08-23 19:37:22 -05:00 | | |
|
2026-08-24 09:56:46 -05:00 | | | //+------------------------------------------------------------------+
|