how to get real quotient in division process?
조회 수: 3 (최근 30일)
이전 댓글 표시
i want to divide 230 by 255 and want to get the answer in decimal or real number. when i write 230/255 it gives me rounded answer but i need its actual answer in real number form.
댓글 수: 0
답변 (1개)
Mischa Kim
2014년 5월 25일
편집: Mischa Kim
2014년 5월 25일
Saima, not quite sure what you mean, but if you need more significant digits for your answers enter
format long
in the command window, or use
vpa(233/255) % typically used for symbolic calculations
댓글 수: 3
Mischa Kim
2014년 5월 25일
Use something like
num = 233/255;
vpa(num, 3)
fprintf('%6.3f\n', num)
Note that vpa is typically used for symbolic calculations.
참고 항목
카테고리
Help Center 및 File Exchange에서 Number Theory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!