文字列を数値に変換
strtoint s1,n2
s1 : 数値に変換する文字列 n2 : 基数(2~36)
(プラグイン / モジュール : llmod3)
文字列を数値に変換します。
strtoint "111101",2 ;2進数とみなして変換 mes stat strtoint "0x1F" ;先頭が"0x"だと16進数とみなされる(Base省略時) mes stat strtoint "0376" ;先頭が"0"だと8進数とみなされる(Base省略時) mes stat strtoint "23413",7 ;7進数とみなして変換 mes stat strtoint "za",36 ;36進数とみなして変換 mes stat stop
| プラグイン / モジュール | llmod3 |
| バージョン | 3.2 |
| 作成日 | 2009/08/01 |
| 著作者 | tom |
| URL | http://www5b.biglobe.ne.jp/~diamond/hsp/hsp2file.htm |
| 備考 | llmod3.hsp,misc.hspをインクルードする |
| タイプ | 拡張命令 |
| グループ | オブジェクト制御命令 |
| hs ファイル | hsphelp\llmod3_misc.hs |