Change the expression of number

2 visualizzazioni (ultimi 30 giorni)
Quynh tran
Quynh tran il 24 Mag 2017
Commentato: Quynh tran il 25 Mag 2017
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

Risposta accettata

Walter Roberson
Walter Roberson il 24 Mag 2017
format long g
and then display the number
  5 Commenti
Quynh tran
Quynh tran il 25 Mag 2017
Thank you so much @Walter Roberson

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by