<< ieee Floating point isinf >>

Scilab Help >> Elementary Functions > Floating point > int

int

round towards zero

Syntax

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])

See also


Report an issue
<< ieee Floating point isinf >>