Hi, In matlab if I assign eg p=1000000040 it becomes p=1e9. Why this happens and how to fix this? thank you

3 views (last 30 days)
Why this happens and how to fix this? thank you

Answers (1)

Walter Roberson
Walter Roberson on 19 Nov 2015
It does not actually happen. You just have the wrong output formatting. Give the command
format long g
and you will see the full value

Categories

Find more on Structures in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!