s = "12"; i = parseInt(s, 10); OR i = evasl(s) OR i = s - 0;
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);
Written and compiled by Réal Gagnon ©1998-2005
[ home ]