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
Citar como
Andrew (2024). ROUND2DP (https://www.mathworks.com/matlabcentral/fileexchange/24213-round2dp), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2008a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Arithmetic Operations en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspirado por: round2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |