| MATLAB Function Reference | ![]() |
表示
str = dec2base(d,base) str = dec2base(d,base,n)
詳細
str = dec2base(d,base)
は、非負整数dを指定の基底に変換します。dは 2^52 より小さい非負整数、base は 2 と 36 の間の整数でなければなりません。出力される引数str は文字列です。
str = dec2base(d,base,n)
は、少なくとも n桁での表現を生成します。
例題
dec2base(23,2) は、 2310 を基底 2に変換し、結果として文字列 '10111' を出力します。
参考
| deblank | dec2bin | ![]() |