ROUND2DP

Round a number to a given number of decimal places

Vous suivez désormais cette soumission

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

Citation pour cette source

Andrew (2026). ROUND2DP (https://fr.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : round2

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0