TsnTables/Src/Bits/CLZ/Test.mq5

31 lines
1.4 KiB
MQL5
Raw Permalink Normal View History

2026-08-27 13:13:08 -05:00
//+------------------------------------------------------------------+
//| Test.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
#property script_show_inputs
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
input ulong InpNumber = 0x800000000000000;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include "CLZ.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
Print("Number:\n", TSN::CBitTricks::ToBitsBE(InpNumber));
Print("CLZ: ", TSN::CBitTricks::CLZ(InpNumber));
}
//+------------------------------------------------------------------+