30/06/2005, 08:32
|
| | Fecha de Ingreso: enero-2002
Mensajes: 1.438
Antigüedad: 23 años 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 |