Borrar filtros
Borrar filtros

How do I get the only the integer part?

32 visualizaciones (últimos 30 días)
zl
zl el 11 de Oct. de 2022
Comentada: zl el 11 de Oct. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by