![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#7
|
||||
|
||||
|
Lo solucione asi:
String DecASexa(long double dec) { short grados = dec; long double temp = std::fabsl(dec - grados); unsigned short minutos = (temp *= 60); unsigned short segundos = (temp-minutos) * 60; return Format("%d\xB0 %d' %d\"", ARRAYOFCONST((grados, minutos, segundos))); } void __fastcall TfrmPrincipal::EasyMap1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y) { //long double fX,fY; long double Latitud1; long double Longitud1; EasyMap1->ScreenToMap(X,Y,Latitud1,Longitud1); lblLatMouse->Caption = (DecASexa(Latitud1)); lblLongMouse->Caption = (DecASexa(Longitud1)); Application->ProcessMessages(); } //--------------------------------------------------------------------------- Ahora necesito,por ej : 41º26'34" = 41º26'34"N ó -41º26'34" = 41º26'34"S Gracias |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|