Numerical Multiplication in MATLAB
이전 댓글 표시
Using MATLAB as a simple calculator, we get the results
2 * 0.155 * 100 = 31,
2 * 0.165 * 100 = 33,
2 * 0.135 * 100 = 27,
2 * 0.125 * 100 = 25
but the moment I compute the following
2 * 0.145 * 100 = 29.0000
I didn't have any variables in the memory, nor any settings enabled. These were on a blank canvas, but this particular value of 0.145 yields 29.0000 with four decimal places. I am a little unsure of why this value of 0.145 yields an answer with decimals, whereas the other calculations yield integers. Does anyone have an answer?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!