Scilab 5.5.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
int
round towards zero
Calling Sequence
y=int(X)
Arguments
- X
real matrix
- y
integer matrix
Description
int(X)
returns the integer part of the real matrix X
.
Same as fix
.
Examples
int([1.3 1.5 1.7 2.5 3.7]) // Notice the result for x negative int([-1.3 -1.5 -1.7 -2.5 -3.7])
Report an issue | ||
<< ieee | Floating point | isinf >> |