Scientific Notation Problems, will not display properly

I'm trying to get matlab to display number in scientific notation below is the code I'm using
format longE
areaFace = 3.8e+7 displays areaFace = 38000000
Engineering format give me...
format longEng
areaFace = 3.8e+7 displays areaFace = 38.0000000000000e+006
what is going wrong?

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 5월 27일

0 개 추천

You may refer Tips in format function documentation. It states that the Integer-valued and floating-point numbers with a maximum of 9 digits do not display in scientific notation.

댓글 수: 1

Thanks, I got a replay from Matlab. That's just weird. Why does it display engineering but not scientific. I've always used scientific since forever and never eng.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

제품

질문:

2020년 5월 24일

댓글:

2020년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by