Ver Mensaje Individual
  #6  
Antiguo 23-06-2015
ralf8727 ralf8727 is offline
Miembro
 
Registrado: may 2015
Posts: 22
Reputación: 0
ralf8727 Va por buen camino
Código Delphi [-]
var
restar:real;
 s:string;
begin
// S :=StringGrid1.Cells[6,stringGrid1.Row];

s:=edit1.Text;
while Pos('.', S) > 0 do
begin
    Delete(S, Pos('.', S),1);
   s:=s;//strtofloat(S);
end;

s := StringReplace(s, ',', '.',[rfReplaceAll, rfIgnoreCase]);

Label1.Caption:=s;

Label2.Caption:= FloatToStr( StrToFloat(s)-100);


end;

esete codigo te podria funcionar pero si estas tomando informacion de un edit puedes poner el valor como se requiere.
Responder Con Cita