i have number i need save only integer without any point or 'e'
이전 댓글 표시
i have a ' x = ATRTIMED(c) * 360 ' the result is '3.700000e+02' i dont need this only i need integer 370 like this
답변 (3개)
Star Strider
2021년 3월 2일
1 개 추천
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.
Hernia Baby
2021년 3월 2일
format
% x = ATRTIMED(c) * 360
x = 3.700000e+02;
x
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
카테고리
도움말 센터 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!