num2str(1234567890123456789) returns '1234567890123456768'
2 ビュー (過去 30 日間)
古いコメントを表示
Please help: command num2str(1234567890123456789) on matlab returns '1234567890123456768'...seems to be some overflow error, as last two digits have got changes from 89 to 68.
0 件のコメント
回答 (1 件)
Jan
2017 年 3 月 18 日
Exactly. Matlab stores the values in the IEEE754 format, which use about 16 digits. This is the standard format for floating point numbers, such that this is not a problem of Matlab but a general decision for numerical software.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!