function cDegMinSec(dDeg){this.mdDeg=parseInt(1000000*dDeg)/1000000;var d100Sec=((0<=this.mdDeg)?1:-1)*60*60*100*this.mdDeg;var i100Sec=parseInt(d100Sec);if(5<=parseInt(10*(d100Sec-i100Sec))){i100Sec=i100Sec+1;} this.mi100Sec=i100Sec%100;var iSec=(i100Sec-this.mi100Sec)/100;this.miSec=iSec%60;var iMin=(iSec-this.miSec)/60;this.miMin=iMin%60;this.miDeg=(iMin-this.miMin)/60;} cDegMinSec.prototype.ToStr=function(lang){if(lang=='ja'){return(this.miDeg+" 度 "+ this.miMin+" 分 "+ this.miSec+"."+ ((this.mi100Sec<10)?"0":"")+ this.mi100Sec+" 秒");} else{return(this.miDeg+"°"+ this.miMin+"′"+ this.miSec+"."+ ((this.mi100Sec<10)?"0":"")+ this.mi100Sec+"″");}}