About 3 significant digit?

Answers (1)

fprintf('%.3g\n', pi)
3.14
fprintf('%.3g\n', pi * 1e6)
3.14e+06
fprintf('%.3g\n', pi * 1e-6)
3.14e-06

Categories

Find more on System Composer in Help Center and File Exchange

Products

Asked:

Ls
on 11 Sep 2021

Answered:

Jan
on 11 Sep 2021

Community Treasure Hunt

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

Start Hunting!