Hmmm.... *thinks hard*
(Taken from the help file)$base(N,inbase,outbase,zeropad,precision)
Converts number N from inbase to outbase. The last two parameters are optional.
$base(15,10,16) returns F
$base(1.5,10,16) returns 1.8
$base(2,10,16,3) returns 002I tried over here a few times, changing the
16 from inbase to outbase and back. This is the order I got for converting one into another:
Data: ACCB60EB.ipt.aol.com
- $base(ACCB60EB,16,10) = 2899009771
- $longip(2899009771) = 172.203.96.235For the reverse operation:
Data: 172.203.96.235
- $longip(172.203.96.235) = 2899009771
- $base(2899009771,10,16) = ACCB60EBThis is quite interesting
I wonder one thing... what is that
10, necessary in both $base's? I tried using 10 because it was present in all examples of the help file.
Another thing: is the $longip always 10 chars lenght? -->
$len(28990097710) = 10Zyzzyx
PS: also I couldn't figure out exaclty what $base is :P