Need to convert my equation in to a decimal number

(9973*sin(1867/500))/80000 + (16813*sin(1867/1000))/20000 - (1187*sin(1867/2000))/1000 - (1187*sin(5601/2000))/3000 + 18619591/40000000
>how to i covert this final answer in to a single decimal num?

답변 (1개)

Greig
Greig 2015년 2월 27일
If by a "single decimal num", you mean round to 1 decimal point, then...
Let X be your big long equation
X2 = round(X*10)/10;
X2 is X rounded to 1dp

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2015년 2월 27일

답변:

2015년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by