subtract very small value

7 views (last 30 days)
Maro
Maro on 22 May 2015
Answered: Star Strider on 22 May 2015
when I subtract a very value small from another value. the answer remain the same as if I did not subtract any value for example if I subtract 1.9512e-005 from 1.5 the answer is 1.5 ...how do I enforce the matlab to output the correct answer?

Accepted Answer

Star Strider
Star Strider on 22 May 2015
Use the format function. You may want to use format longE.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!