Round down lowest number in a decimal number

조회 수: 7 (최근 30일)
Martin
Martin 2018년 4월 11일
댓글: Martin 2018년 4월 11일
Hello, say I have a number 4.214513. Then I need to return 4.21. Likewise if I have 4.219999, I need to return 4.21. Is there any function or other method to achieve this in Matlab?

채택된 답변

James Tursa
James Tursa 2018년 4월 11일
E.g.,
x = whatever
result = floor(x*100)/100;

추가 답변 (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