I want to increase calculations precision. I want to increase decimal point like 32. Is that possible?
3 views (last 30 days)
Show older comments
%for example
format long
a=[1.956272615279882 -0.142399812934086]
%this decimal point isn't enough for me (15).
%I want to produce like;
1.95627261527988211111111111111111 (32);
4 Comments
Muthu Annamalai
on 25 Jun 2013
Edited: Muthu Annamalai
on 25 Jun 2013
Or if you only want to print more digits on the screen, you may just lookup
>> help format
>> format long
>> 1/pi
Alternatively if you want more high-precision calculations at risk of losing dynamic range @Walter recommendation should work. @James recommendation of Symbolic toolbox will also work, while being even slower than the fixed point.
Pavel Holoborodko
on 20 Jul 2013
It is faster than Symboilc Toolbox and allows programming with arbitrary precision.
Accepted Answer
the cyclist
on 20 Jul 2013
If you can formulate your problem to work with integers rather than floating point, then this free toolbox is great:
0 Comments
More Answers (0)
See Also
Categories
Find more on Numbers and Precision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!