필터 지우기
필터 지우기

num2str(12​3456789012​3456789) returns '1234567890123456768'

조회 수: 1 (최근 30일)
abhinibesh
abhinibesh 2017년 3월 18일
답변: Jan 2017년 3월 18일
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.

답변 (1개)

Jan
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.
See https://www.mathworks.com/help/symbolic/vpa.html for using number with more digits.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by