mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-17 06:29:32 +00:00
global-functions: drop $HexToNum
This commit is contained in:
parent
e694477fdc
commit
66764ed0b2
1 changed files with 0 additions and 14 deletions
|
|
@ -47,7 +47,6 @@
|
||||||
:global GetRandom20CharHex;
|
:global GetRandom20CharHex;
|
||||||
:global GetRandomNumber;
|
:global GetRandomNumber;
|
||||||
:global Grep;
|
:global Grep;
|
||||||
:global HexToNum;
|
|
||||||
:global HumanReadableNum;
|
:global HumanReadableNum;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global IsDefaultRouteReachable;
|
:global IsDefaultRouteReachable;
|
||||||
|
|
@ -717,19 +716,6 @@
|
||||||
:return [];
|
:return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
# convert from hex (string) to num
|
|
||||||
:set HexToNum do={
|
|
||||||
:local Input [ :tostr $1 ];
|
|
||||||
|
|
||||||
:global HexToNum;
|
|
||||||
|
|
||||||
:if ([ :pick $Input 0 ] = "*") do={
|
|
||||||
:return [ $HexToNum [ :pick $Input 1 [ :len $Input ] ] ];
|
|
||||||
}
|
|
||||||
|
|
||||||
:return [ :tonum ("0x" . $Input) ];
|
|
||||||
}
|
|
||||||
|
|
||||||
# return human readable number
|
# return human readable number
|
||||||
:set HumanReadableNum do={
|
:set HumanReadableNum do={
|
||||||
:local Input [ :tonum $1 ];
|
:local Input [ :tonum $1 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue