FIJE la Función

Objetivo:

Truncar x a un número entero.

Sintaxis:

 FIJE (x) 

Comentarios:

FIJE no acaba números, esto simplemente elimina el punto decimal y todos los caracteres a la derecha del punto decimal.

FIJE (x) es equivalente a SGN (x) *INT (ABS (x)). La diferencia principal entre FIJA e INT es esto FIJA no devuelve el siguiente número inferior para x negativo.

FIJE es útil en la aritmética de módulo.

Ejemplos:

 LA LETRA FIJA (58.75)  
58 
 LA LETRA FIJA (-58.75)
 -58
 

FIX Function

Purpose:

To truncate x to a whole number.

Syntax:

FIX(x)

Comments:

FIX does not round off numbers, it simply eliminates the decimal point and all characters to the right of the decimal point.

FIX(x) is equivalent to SGN(x)*INT(ABS(x)). The major difference between FIX and INT is that FIX does not return the next lower number for negative x.

FIX is useful in modulus arithmetic.

Examples:

PRINT FIX(58.75)
 58
PRINT FIX(-58.75)
 -58
1