NAME

fix - truncate numeric expression to integer

SYNOPSIS

v = fix(NumExpr)

DESCRIPTION

Fix converts its argument, NumExpr, to an integer by dropping all digits to the right of the decimal point.  NumExpr may be any numeric expression. 

The difference between fix and int is that fix does not return the next lower number when NumExpr is negative. 

EXAMPLE

The program
	n = 33.58
	print fix(n)
	print fix(234.523)
	print fix(-82.34)
produces
	 33
	 234
	-82

SEE ALSO

int

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber