mIRC Home    About    Download    Register    News    Help

Print Thread
#66601 05/01/04 07:16 AM
Joined: Jan 2004
Posts: 26
M
module Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 26
I'm looking for a guide/tutorial/etc on the base conversions for hex, dec, bin, etc... Thanks.

#66602 05/01/04 08:31 AM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
i think you can find one on www.mircscripts.org ..

#66603 05/01/04 12:35 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
$base(text,10,2) converts normal text/numbers to binary.
$base(binary,2,10) converts binary to normal numbers/text.
$base(text,10,16) converts normal text/numbers to hexidecimal.
$base(hexidecimal,16,10) converts hexidecimal to normal numbers/text.
$base(hexidecimal,16,2) converts hexidecimal to binary
$base(binary,2,16) converts binary to hexidecimal.

#66604 07/01/04 04:32 AM
Joined: Sep 2003
Posts: 4,214
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,214
aggghhhhhhhhh, i hate it when theres a command i couldnt find looked for $hex and $octal once, didnt find em so wrote them myself frown, same as $longip() what a sad day that was, 2 mins after writting a longip to x.x.x.x i found it in the help

Well at least i can use it now.

#66605 07/01/04 11:50 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
lol

alias hex { return $base($1,10,16) }
alias bin { return $base($1,10,2) }


Link Copied to Clipboard