
7-6
Section
Details of BASIC Commands
158
fix
Syntax:
FIX
(<numerical expression>)
Description:
Function. Returns the integer part of the numerical expression specified as the argument.
<numerical expression> may be any integer, single-precision floating point or double-precision
floating point.
The return type is the type of argument.
Remarks:
Note:
1.
Returns the integer part without rounding down or up after the decimal point.
2.
If the argument value is positive, FIX will return the same value as INT. If the
argument value is negative, FIX will return a value of 1 more than INT. For
example, for FIX(-6.1), -6 is returned.
3.
Refer to Precautions on Real Numbers in 7-4-4 Constants.
Examples:
> 10 A = FIX(6.1)
> 20 B = FIX(6.9)
> 30 C = FIX(-6.1)
> 40 D = FIX(-6.9)
> 50 PRINT A,B,C,D
> RUN
6
6
-6
-6
See also:
INT
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...