mIRC Home    About    Download    Register    News    Help

Print Thread
#43482 22/08/03 01:40 AM
Joined: Aug 2003
Posts: 14
T
Token Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Aug 2003
Posts: 14
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 ?

#43483 22/08/03 09:24 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
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...


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard