Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/06/2005, 08:32
rrufo
 
Fecha de Ingreso: enero-2002
Mensajes: 1.438
Antigüedad: 22 años, 3 meses
Puntos: 0
mirate de documentacion de parseint,

en el segundo parametro le puedes decir q te lo pase a headecimal.

You can use the optional radix argument to convert a binary number string to the decimal (base 10) equivalent.

Code:
document.write(parseInt("110", 2))

Output:
6

You can use the optional radix argument to convert a hexidecimal number string to the decimal (base 10) equivalent.

Code:
document.write(parseInt("0xD9", 16))

Output:
217