Omron C200H-ASC11 Manual page 167

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Details of BASIC Commands
fix
Syntax:
(<numerical expression>)
FIX
Function. Returns the integer part of the numerical expression specified as the argument.
Description:
<numerical expression> may be any integer, single-precision floating point or double-precision
Remarks:
floating point.
The return type is the type of argument.
Note:
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
See also:
INT
158
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.
6
-6
-6
7-6
Section

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents