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..

回答(1 个)

Sean de Wolski
Sean de Wolski 2011-5-6
as long as
class(your_result)
is 'double' it is long.
  4 个评论
Matt Tearle
Matt Tearle 2011-5-6
or use something like fprintf('%16.13f',x) to see the result to whatever precision you want.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by