Mitsubishi QD51 Programming Manual page 268

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
INT Function
• Returns the integer value of the numeric expression
INT ( <numeric expression> )
Syntax
numeric expression
A=INT(B)
Examples
• The INT function returns the maximum integer value that does not exceed the value of
Description
<numeric expression>.
• The INT function calculates the maximum integer which does not exceed <numeric
expression> when truncating the fractional part. Thus, the result is different when the
numeric value is negative from the result by the FIX function that simply truncates the
fractional part.
Example
• Unlike the CINT function, the type is not converted.
11 - 98
INTeger
• • • •
Specify the value to be processed.
• • • •
Converts the value of B into an integer value and
assigns it to A.
FIX( 1.28)
1
INT( 1.28)
FIX(-1.28)
-1
INT(-1.28)
-2
INT(-1.28)
1
-2
-1
0
FIX(+1.28)
FIX(-1.28)
INT(+1.28)
MELSEC-Q
1 1.28
2
11 - 98

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents