Ver Mensaje Individual
  #6  
Antiguo 18-07-2006
onlytk onlytk is offline
Miembro
 
Registrado: oct 2005
Posts: 53
Reputación: 19
onlytk Va por buen camino
Gracias luisgutierrezb

Gracias luisgutierrezb y bismarck_sierra lo consegui cambiando:
Código:
var
    montoTotal: Double;
    partEntera: Integer;
    partDecimal: Integer;
por:

Código:
var
    montoTotal: Currency;
    partEntera: Integer;
    partDecimal: Integer;
y tambien obteniendo los decimales de la forma en que dijo bismarck_sierra:

Código:
partDecimal := Trunc((montoTotal - Int(montoTotal)) * 100);
Pero porque ocurre esto???, tanta es la diferencia entre los tipos Double y Currency??

Salu2 y gracias.

Última edición por onlytk fecha: 18-07-2006 a las 02:58:45.
Responder Con Cita