MATLAB Answers

Problem in displaying numbers

4 views (last 30 days)
hi.
i am new in matlab, i have a problem when i calculating two variable like:
x = 8000.2
y = 8000.3
the result appears like:
z = x + y = 1.6001e+04
while the result must be 16000.5
is i wrong in something or there is some setting must be corrected? any one help my pleas, thank you.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jan 2020
format long g

  1 Comment

Mohammed Abdul Wadood
Mohammed Abdul Wadood on 19 Jan 2020
it's solved my problem
thank you sir, thank you so much

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2019b