|
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
|