roundd.m

Rounds an array up to N digits from the left.
다운로드 수: 2K
업데이트 날짜: 2016/5/4

라이선스 보기

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 CenterMATLAB 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