roundd.m

Rounds an array up to N digits from the left.
2K téléchargements
Mise à jour 4 mai 2016

Afficher la licence

Rounds an array up to N digits from the left, taking the element with more digits to the left ['max(abs(x(:)))'] as the reference. So, it is different from ROUNDN (mappinf toolbox) because this latter takes the dot as reference.
roundd(0.012345,3) = 0.012300
roundd(0.012345,4) = 0.012350, etc

Note: inside there is a function that check where an array has integer (natural numbers) elements: ISNATURAL

Check the screenshot for an example.

Citation pour cette source

Carlos Adrian Vargas Aguilera (2024). roundd.m (https://www.mathworks.com/matlabcentral/fileexchange/12992-roundd-m), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP3
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Numbers and Precision dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

BSD License