double dl = 30.345
int du = (int)ft; // 这是度
int fen = (int)(dl - du) * 60 //这是分
int miao = (int)((dl - du)*3600 - fen*60) //这是秒不知对不对,我自己都有点糊了,呵呵