ROUND2DP

Version 1.0.0.0 (1,14 KB) von Andrew
Round a number to a given number of decimal places
1,2K Downloads
Aktualisiert 20. Mai 2009

Lizenz anzeigen

This expands on the operation of the built-in ROUND function to provide functionality to round to a given number of decimal places. For example,

>> round(pi)
ans =
3

>> round2dp(pi,3)
ans =
3.142

Zitieren als

Andrew (2024). ROUND2DP (https://www.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2008a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Arithmetic Operations finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: round2

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0