Ver Mensaje Individual
  #4  
Antiguo 13-05-2014
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
¿Qué tal algo así?

Código Delphi [-]
function ImprimeCurrency(C: Currency): String;
begin
  Result := IntToStr(Trunc(100*C));
end;

O bien, si necesitas redondeo:

Código Delphi [-]
uses Math;

function ImprimeCurrency(C: Currency): String;
begin
  C := RoundTo(C, -2);
  Result := IntToStr(Trunc(100*C));
end;

// Saludos
Responder Con Cita