how to convert a binary string of length more than 52 bits to decimal number.

3 ビュー (過去 30 日間)
madhavee latha
madhavee latha 2017 年 9 月 27 日
回答済み: BhaTTa 2024 年 10 月 25 日
I have a binary string of 8000 bits which has to be converted to decimal.

回答 (1 件)

BhaTTa
BhaTTa 2024 年 10 月 25 日
Hey @madhavee latha, to convert a binary string of bits into a decimal number in MATLAB, you can use the bin2dec function. However, bin2dec has a limitation on the length of the binary string it can handle "A binary number represented by binStr can have no more than 53 digits."
Please refer to below documentation:

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by