필터 지우기
필터 지우기

Converting a symbolic array to a double array cuts off decimal places, why?

조회 수: 2 (최근 30일)
Ahmed Hossam
Ahmed Hossam 2017년 4월 15일
댓글: James Tursa 2017년 4월 15일
I have a symbolic array arrsym with values like for example 1.234567891234567...
When I double(arrsym), then I get only four decimal digits, so I get 1.2345 in my new double array instead of the corresponding 1.234567891234567 in my old symbolic array ...
How can I keep all the dicimal digits of my numbers in the symbolic array also after conversion of this symbolic array into a double array?
Thank you for your answer in advance.
Regards
Ahmed Hossam
  댓글 수: 1
James Tursa
James Tursa 2017년 4월 15일
You have only 4 digits displayed, but they are really full double precision variables in memory with about 15-16 decimal digits of precision.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by