Problem in displaying numbers

1 Ansicht (letzte 30 Tage)
Mohammed Abdul Wadood
Mohammed Abdul Wadood am 19 Jan. 2020
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Jan. 2020
format long g
  1 Kommentar
Mohammed Abdul Wadood
Mohammed Abdul Wadood am 19 Jan. 2020
it's solved my problem
thank you sir, thank you so much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by