Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> Integers > iconvert

iconvert

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

呼び出し手順

y=iconvert(X,itype)

パラメータ

X

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

y

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

説明

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

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型の数を返します

itype=4

[-9223372036854775808,9223372036854775807]の範囲のint32型の数を返します

itype=14

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

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

参照

  • double — converts inttype integers or booleans into decimal encoding
  • inttype — 整数データ型で使用される整数型
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:29 CEST 2016