How do I get the only the integer part?

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

提问:

zl
2022-10-11

评论:

zl
2022-10-11

Community Treasure Hunt

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

Start Hunting!

Translated by