ROUND2DP

Round a number to a given number of decimal places

Al momento, stai seguendo questo contributo

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

Cita come

Andrew (2026). ROUND2DP (https://it.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Recuperato .

Riconoscimenti

Ispirato da: round2

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0