필터 지우기
필터 지우기

How do I get the only the integer part?

조회 수: 32 (최근 30일)
zl
zl 2022년 10월 11일
댓글: zl 2022년 10월 11일
I want to get the 1846,but I get the 1845.Why is that?
Is there any other good way?
a=1.8460e+03;
a1=fix(a);
>>
1845

채택된 답변

KSSV
KSSV 2022년 10월 11일
a=1.8460e+03;
round(a)
ans = 1846

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by