Ver Mensaje Individual
  #4  
Antiguo 07-10-2007
Avatar de xEsk
[xEsk] xEsk is offline
Miembro Premium
 
Registrado: feb 2006
Posts: 454
Reputación: 19
xEsk Va por buen camino
Bueno, mi forma chapucera de toda la vida había sido:
Código Delphi [-]
function SetDecimals(Value:Real; Decimals:Byte): Real;
begin
  Result:=StrToFloat(Format('%.' + IntToStr(Decimals) + 'f', [Value]));
end;

Todos tenemos nuestra forma chapuza xD

Saludos.
Responder Con Cita