Author: Real Gagnon
Author's WebSite: http://tactika.com/realhome/realhome.html
A string to integer
s = "12";
i = parseInt(s, 10); or i = eval(s) or i = s - 0;
An integer to a string
i = 12;
s = (i).toString(); or s = "" + i;
(hex string) s = "0x" + (i).toString(16);
(oct string) s = "0" + (i).toString(8);
(bin string) s = (i).toString(2);
Posted On: 10-Jul-1999