storedInteger
fi オブジェクトの格納整数値を取得
説明
例
入力引数
出力引数
制限
storedInteger関数では 64 ビットを超える整数はサポートされていません。出力のデータ型が 65 ビット以上の場合、storedInteger関数でエラーが発生します。以下に例を示します。storedInteger(fi(1,0,65,0))
Integers greater than 64 bits are not supported in the 'storedInteger' function. For exact integer representation for any word length, use BIN, OCT, DEC, or HEX. To convert a stored integer value to double for any word length, use storedIntegerToDouble.
ヒント
代替機能
関数
int 関数と storedInteger 関数は、どちらも fi オブジェクトの格納整数値を返します。int 関数は、fi オブジェクトの格納整数の取得と設定の両方に使用できます。
a = fi(pi);
y = int(a) %gety = int16 25736
a = fi(pi); a.int = 3; %set y = a.int %get
y = int16 3
storedInteger 関数は、fi オブジェクトの格納整数値の取得にのみ使用できます。a = fi(pi); y = storedInteger(a)
y = int16 25736
storedInteger 関数は、fi オブジェクトの格納整数値の設定には使用できません。拡張機能
バージョン履歴
R2012a で導入