フィルターのクリア

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
  1 件のコメント
zl
zl 2022 年 10 月 11 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by