mIRC Homepage
Posted By: Token $base - 22/08/03 01:40 AM
The $base doesn't work correctaly, many cases

When I use for exemple:

$base(RAFAEL,26,10)
ok, returns 325637697
but, when I convert again ....
$base(325637697,10,26)
returns 11AFAEL

--------- other exemple

$base(AABBAABBAABBAABBAABBAABB,36,10)
return 6415425371122281350404824422624208628
converting again to base 36 ...

$base(6415425371122281350404824422624208628,10,36)

= AABBAABBAABB0GOW4W4O8GW4

what's this ? why ?
Posted By: theRat Re: $base - 22/08/03 09:24 AM
Base 26 uses:
0123456789ABCDEFGHIJKLMNOP
So there's no R
Code:
Of course preceding zero's aren't showed
01 = 1
02 = 2
...
09 = 9
0A = A
0B = B
...
0O = O 
0P = P This is the same as when you go from 09 to 10 in BASE10
10 = Q
11 = R
12 = S
...
19 = Z 
 


About the other bug... computers can't just handle big numbers...
© mIRC Discussion Forums