Round to a Specified Number of Significant Digits

버전 1.0.0.3 (5.42 KB) 작성자: Edward Zechmann
Rounds a numeric array to a specified number of Significant Digits. Supports real and complex numbers, five different kinds of rounding.
다운로드 수: 4.2K
업데이트 날짜: 2022/3/26

라이선스 보기

sd_round stands for "Significant Digits Round".
This program rounds a 2-d matrix of numbers to a specified number of significant digits.
This program support five different styles of rounding the last digit: to the nearest integer, up, down, toward zero, and away from zero.
This program supports real and complex numbers.
This program supports units and a three digit separator character.
The program outputs the rounded array, a cell string of the rounded matrix, the number of digits, to the left and right of the decimal place.
This program is useful for presenting scientific data that requires rounding to a specified number of significant digits for publication.

인용 양식

Edward Zechmann (2024). Round to a Specified Number of Significant Digits (https://www.mathworks.com/matlabcentral/fileexchange/21225-round-to-a-specified-number-of-significant-digits), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Arithmetic Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.3

Fixed a bug in the output of real number strings with SI Prefixes

1.0.0.2

Fixed a bug with outputting the A2 when there is only one output variable.

1.0.0.1

Added options for units and a three digit separator character.

1.0.0.0