About 3 significant digit?
Show older comments
How do i present the output in 3 significant digit?
Answers (1)
fprintf('%.3g\n', pi)
fprintf('%.3g\n', pi * 1e6)
fprintf('%.3g\n', pi * 1e-6)
Categories
Find more on System Composer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!