Filter löschen
Filter löschen

Limit significant figures to 2 significant figures

62 Ansichten (letzte 30 Tage)
N/A
N/A am 4 Feb. 2020
Beantwortet: Star Strider am 4 Feb. 2020
et=abs(((stop-new_cos)/stop)*100);
Say I use the above to solve for a number how would I limit the et variable to 2 significant figures?

Akzeptierte Antwort

Star Strider
Star Strider am 4 Feb. 2020
Using the round function and the option in: Round Elements to Specified Number of Significant Digits is likely to be more consistent.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by