JavaScript - NO MUESTRA DATO

 
Vista:

NO MUESTRA DATO

Publicado por GONZALO (4 intervenciones) el 24/04/2007 16:58:11
HOLA BUENAS DIAS, NECESITO SABER POR QUE AL PREGUNTA POR TOTAL SI ES IGUAL A 5 NO ME MUESTRA ("a") ya que total es igual= 10.23

if(formulario.zona.value == 1){
cantidad = formulario.no.value * 0.222757
decimales = 3
decimales = (!decimales ? 2 : decimales);
total = Math.round(cantidad * Math.pow(10, decimales)) / Math.pow(10, decimales);
formulario.dato.value= total

if(total.length == 5){
alert("a")
}
else

{
alert("b")
}
gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder