mIRC Home    About    Download    Register    News    Help

Print Thread
#18470 07/04/03 09:05 PM
Joined: Mar 2003
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Mar 2003
Posts: 4
I need a script that would convert bin to hex. I tried alot of if's but now i need a way to make it without using like: if(%bin = 1111) out = "F"
bcus if its 100 pixels wide thats alot of ifs. Can anyone help me with this?

#18471 07/04/03 09:15 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
$base(the_binary_number,2,16)

#18472 10/04/03 07:25 PM
Joined: Mar 2003
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Mar 2003
Posts: 4
Thanks, just figured that out, i gues maybe i should have looked a little harder...


Link Copied to Clipboard