///四舍五入public double transmitNum(double f) { if((f-(int)f)<=0.5&&(f-(int)f>0)) return (int)f+0.5; if((f-(int)f)>0.5) return (int)f+1.0; if((f-(int)f)==0) return f; return f; }