roundd.m
版本 1.0.0.0 (1.3 KB) 作者:
Carlos Adrian Vargas Aguilera
Rounds an array up to N digits from the left.
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.
引用格式
Carlos Adrian Vargas Aguilera (2024). roundd.m (https://www.mathworks.com/matlabcentral/fileexchange/12992-roundd-m), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Numbers and Precision 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 | BSD License |