Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/01/2008, 11:48
EliTehuitzil
 
Fecha de Ingreso: septiembre-2007
Mensajes: 53
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Problema con decimales

ahora lo he puesto asi y en la ventana del Output al probarlo me sale "NaN F"

var xmlData=new XML();
xmlData.ignoreWhite=true;
xmlData.onLoad=processXMLData;
xmlData.load("http://weather.yahooapis.com/forecastrss?p=MXCL0013&u=c");

onEnterFrame = function() {
city_name.text = xmlData.firstChild.childNodes[0].childNodes[6].attributes.city+" MX";
city_temp_c.text = xmlData.firstChild.childNodes[0].lastChild.childNodes[5].attributes.temp + " Cº";
city_condition.text = xmlData.firstChild.childNodes[0].lastChild.childNodes[5].attributes.text;
}
var gradosF:Number = Math.round(xmlData.firstChild.childNodes[0].lastChild.childNodes[5].attributes.temp * 1.8 + 32);
trace (gradosF+" F");

city_temp_f.text = gradosF + " F";