Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

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)

参照

  • double — 整数から倍精度表現に変換
  • inttype — 整数データ型で使用される整数型
Report an issue
<< Integers Integers int8 >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:25 CEST 2014