Change the expression of number

2 views (last 30 days)
Dear all,
I have this number
A=0.1235689745654
but when I need to show it, just only 4 number after dot "." was shown like this.
A =0.1236
But I want it's shown like this
A=0.1235689745654
Could you help me to fix it. Thanks

Accepted Answer

Walter Roberson
Walter Roberson on 24 May 2017
format long g
and then display the number
  5 Comments
Quynh tran
Quynh tran on 25 May 2017
Thank you so much @Walter Roberson

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!