Cita:
Iniciado por nicolaspar Como estas seteando dichos numeros? intentaste poniendole a cada valor un parseInt?
PD: parseInt es parseInt(valor,decimales) si mal no recuerdo.
recuerdas mal
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