round off value up to 5 decimal point

26 views (last 30 days)
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

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 30 Dec 2012
Out=fix(x*10^5)/10^5
  3 Comments
Jan
Jan on 30 Dec 2012
@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 on 30 Dec 2012
@jan yes for a particular problem it's solved

Sign in to comment.

More Answers (0)

Categories

Find more on Elementary Math 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!