Effacer les filtres
Effacer les filtres

How do I get the only the integer part?

32 vues (au cours des 30 derniers jours)
zl
zl le 11 Oct 2022
Commenté : zl le 11 Oct 2022
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

Réponse acceptée

KSSV
KSSV le 11 Oct 2022
a=1.8460e+03;
round(a)
ans = 1846

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by