How can I display a complex decimal result with actual precision value?
Show older comments
I am trying to do arithmetic calculation with a number e=0.015923-0.03179523i iteratively to generate an encryption key which is to be expected a high precision complex decimal number. After calculation, I got the result only upto 4 decimal digits. I tried digits() but problem is that the result displayed according to the number given in digits(). I want the result with actual precision value. Please help.
Accepted Answer
More Answers (1)
Brendan Hamm
on 3 Nov 2016
format long
will display the full numeric precision of all values at the command line.
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!