How to round UP to 1 decimal value?

조회 수: 7 (최근 30일)
Ramadhan Hakim
Ramadhan Hakim 2020년 10월 23일
댓글: Ramadhan Hakim 2020년 10월 23일
Suppose I have a value x = 6.543. I want to round it up to 6.6.
I tried
x = 6.543;
x_round = round(x,1);
But it always returns x_round=6.5
Thanks in advance!

채택된 답변

Alan Stevens
Alan Stevens 2020년 10월 23일
편집: Alan Stevens 2020년 10월 23일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by