Converting a symbolic array to a double array cuts off decimal places, why?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162974/image.jpeg)
1 Kommentar
James Tursa
am 15 Apr. 2017
You have only 4 digits displayed, but they are really full double precision variables in memory with about 15-16 decimal digits of precision.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!