Tandy 1000 Basic Reference Manual page 165

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chawter
10 I
BASIC Kevwords
FIX
Function
FIX( num ber)
Returns the truncated integer of
number.
Unlike CINT, FIX does not round the fractional portion of
num-
ber
when making it an integer. Instead, FIX simply strips the
fractional portion from
number
so that the resultant value is a
whole number. The result is the same precision as the argument
(except for the fractional portion).
Unlike INT, FIX does not return the next lower number for a
negative
number.
FIX is the same as:
SGN(number)*INT(ABS(number)).
See also CINT and INT, which also return integer values.
Examples
P R I N T F I X C 2 . 6 )
prints 2.
P R I N T FIX(-2.6)
prints -2.
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents