<< Integers Integers int8 >>

Scilabヘルプ >> Integers > iconvert

iconvert

1または4バイト整数表現に変換する

呼び出し手順

y=iconvert(X,itype)

パラメータ

X

浮動小数点数または整数の行列

y

1,2または4バイト整数の行列.

説明

1, 2 または 4バイト整数に変換し,保存します.

itype=0

浮動小数点数を返します

itype=1

[-128,127]の範囲のint8型の数を返します

itype=11

[0,255]の範囲のuint8型の数を返します

itype=2

[-32768,32767]の範囲のint16型の数を返します

itype=12

[0, 65535]の範囲のuint16型の数を返します

itype=4

[-2147483648,2147483647]の範囲のint32型の数を返します

itype=14

[0, 4294967295]の範囲のuint32型の数を返します

b=int32([1 -120 127 312])
y=iconvert(b,1)

参照


Report an issue
<< Integers Integers int8 >>