round off value up to 5 decimal point

13 次查看(过去 30 天)
hi after simplifying a equation i have got a value as shown below
4*sin(x1) - 7*sin(x2))/2 - 8236469997687075/18014398509481984
in that how to get an equation in decimal instead of fraction

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-12-30
Out=fix(x*10^5)/10^5
  3 个评论
Jan
Jan 2012-12-30
@Azzi: 10^5 is more expensive than 1e5.
@P Anand Raju: Accepting an answer means, that the problem is solved. Is it?
P Anand Raju
P Anand Raju 2012-12-30
@jan yes for a particular problem it's solved

请先登录,再进行评论。

更多回答(0 个)

类别

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