ROUND2DP

Round a number to a given number of decimal places

Sie verfolgen jetzt diese Einreichung

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 (2026). ROUND2DP (https://de.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: round2

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0