# int32 (Matlab function)

Convert to 32-bit signed integer

## Matlab/Scilab equivalent

Matlab | Scilab

    int32

    int32

## Particular cases

For infinite and NaNs values, Scilab and Matlab int32 return different values.

## Examples

Matlab | Scilab

    A = int32(inf)
    A = 2147483647
    A = int32(-inf)
    A = -2147483648
    A = int32(nan)
    A = 0

    A = int32(%inf)
    A = -2147483648
    A = int32(-%inf)
    A = -2147483648
    A = int32(%nan)
    A = -2147483648