Skip to content

FIX

Special Integer Function

For positive numbers, this numeric function returns the truncated integer portion of the number (the same as the INT function). For negative numbers, this function returns the integer portion of the number unconditionally rounded to the next smaller negative integer if the original negative number contained any fractional portion.

FIX (numeric-value [,ERR=line-ref|,ERC=error-code])
numeric-value
is any number.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.
FIX (123.4567)

returns the integer 123.

FIX (-123)

returns the integer -123.

FIX (-123.4567)

returns the integer -124.

INT function

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF