Change the expression of number

2 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2017-5-24
format long g
and then display the number
  5 个评论
Quynh tran
Quynh tran 2017-5-25
Thank you so much @Walter Roberson

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by