FIX
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Numeric functions > FIX |
Description
Truncate a floating-point number to an integer.
Syntax
n = FIX(numeric_expression)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
Remarks
FIX strips off the fractional part of its argument, and returns the integer part.
Unlike INT, FIX does not perform any form of rounding or scaling.
Restrictions
See also
Numeric functions, INT, CEIL, FRAC, ROUND,
Examples