i have number i need save only integer without any point or 'e'
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(3 个)
Star Strider
2021-3-2
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 个评论
Jan
2021-3-2
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!