how to store matlab results in long precision
1 次查看(过去 30 天)
显示 更早的评论
I am working with long precision values... after performing arithmetic division operation matlab is giving the rounded up result but i need to store the exact long precision value..
0 个评论
回答(1 个)
Sean de Wolski
2011-5-6
as long as
class(your_result)
is 'double' it is long.
4 个评论
Matt Tearle
2011-5-6
or use something like fprintf('%16.13f',x) to see the result to whatever precision you want.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!