Ver Mensaje Individual
  #3  
Antiguo 02-11-2006
Robert01 Robert01 is offline
Miembro
 
Registrado: feb 2006
Ubicación: Córdoba, Argentina
Posts: 895
Reputación: 21
Robert01 Va por buen camino
Hola

Si usás trunc el entero se obtiene eliminando la parte decimal pero también es posible obtener un entero usando round.

function Round ( const Number : Extended ) : Int64;

12.4 rounds to 12
12.5 rounds to 12
12.6 rounds to 13


En cambio con trunc es:

12.4 truncs to 12
15.5 truncs to 12
12.6 truncs to 12

saludos
Responder Con Cita