function lat2str(x) {
    var dec = Math.abs(x);
    var sgn = (x < 0) ? " S" : " N";
    var d = Math.floor(dec);
    var m = 60 * (dec - d);
    return cintstr(d, 3) + "° " + frealstr(m, 4, 1) + "'" + sgn;
}
// converts latitude in signed degrees into string

converts latitude in signed degrees into string
converts latitude in signed degrees into string
function lat2str(x) {
    var dec = Math.abs(x);
    var sgn = (x < 0) ? " S" : " N";
    var d = Math.floor(dec);
    var m = 60 * (dec - d);
    return cintstr(d, 3) + "° " + frealstr(m, 4, 1) + "'" + sgn;
}
function lat2str ( x ) { var dec = Math . abs ( x ) ; var sgn = ( x < 0 ) ? " S" : " N" ; var d = Math . floor ( dec ) ; var m = 60 * ( dec - d ) ; return cintstr ( d , 3 ) + "° "  realstr( m , , ) '"  gn; }
converts latitude in signed degrees into string
converts latitude in signed degrees into string