Maur&amp;#38;&amp;#35;237&amp;#59;cio Roberto Gonzatto

How can i put this Latitude Value in my VE application

16o 50' 27''

Thanks...

### Re: Format Lat and Lon

Derek Chan

VE won't accept the degree/minute/second format but you can use a formula to convert it into decimal degrees format and pass that into VE.

There's a useful formula here you can use:

Decimal Degrees = Degrees + (Minutes/60) + (Seconds/3600)

Hope that helps,

### Re: Format Lat and Lon

Mauricio Roberto Gonzatto

You`re the man!!!

Thank`s again!

### Re: Format Lat and Lon

Mauricio Roberto Gonzatto

Maybe could help someone else.

private string formataLatLon(string LatLon)

{

string retorno = "0";

if (LatLon != "")

{

string valor = LatLon.Replace("o", "");

valor = valor.Replace("'", "");

string[] arr1 = valor.Split(' ');

retorno = Convert.ToDecimal(arr1[0]).ToString() + "." +

Convert.ToString( (Convert.ToDecimal(arr1[1]) / 60) ) +

Convert.ToString( (Convert.ToDecimal(arr1[2]) / 3600) );

}

return retorno.ToString();

}