i have number i need save only integer without any point or 'e'
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i have a ' x = ATRTIMED(c) * 360 ' the result is '3.700000e+02' i dont need this only i need integer 370 like this
0 comentarios
Respuestas (3)
Star Strider
el 2 de Mzo. de 2021
I am not certain what you want to do.
To change the way the numbers are displayed, change the format options to display the numbers as you want them.
0 comentarios
Jan
el 2 de Mzo. de 2021
To get an integer value use round, floor or ceil.
If you only want to hide the fractional part, which can contain small numbers due to the limited precision of doubles, see:
doc format
0 comentarios
Ver también
Categorías
Más información sobre Multidimensional Arrays 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!