How to display decimal places
조회 수: 1 (최근 30일)
이전 댓글 표시
So I am programming a loop that multiplies by 10, but I need it to display 2 decimal places, how do I do that? This is what I have so far:
clc
for i = 1.00:1.00:15.00
k = i*10
end
댓글 수: 0
채택된 답변
Star Strider
2019년 4월 9일
There are several options, one of which is to choose the format (link) type for what you want to do. I will let yoiu explore the linked documentation at your leisure.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!