 					}
 					
 					var h:Number =  int((stage.stageHeight - 2 * oy) / numline);
+					var numDot:int = 0;
+					var n:String = h + "";
+					var di:int = n.indexOf(".");
+					if (di ==-1){
+						numDot = 0;
+					}else{
+						n=n.substr(di+1)
+						numDot = n.length;
+					}
+					trace("小数点位数",numDot);
 					for (var i:int = 0; i <= numline; i++ ){
 						var y:Number = getY(minV + i, minV, maxV, s, h);
 						drawDashLine(kline.graphics, 0, y, w-ox, y,2);

					kline.addChild(labelTF);
					labelTF.y = y - labelTF.height / 2;
					labelTF.x = w - ox;
					labelTF.text = d.toFixed(2) + "";
				}
				kline.graphics.lineTo(x, y);
				if (x < 0){

			loader.addEventListener(IOErrorEvent.IO_ERROR, loader_ioError);
			loader.load(new URLRequest(
			//"http://120.26.39.108:9090/getAllMobilePrice.do?pcode=XTAG200G"
			"http://121.43.100.114:9095/pass/marketTimeList?pcode=CU10"
			+"&v="+Math.random()));
			addChild(kline);
			kline.y = oy;
			//update();
			
		}
		
		private function loader_ioError(e:IOErrorEvent):void 
