Round to Specified Digits Place

Rounds to the specified digits place and supports five different styles of rounding the last digit, real and complex numbers, and units.

現在この提出コンテンツをフォロー中です。

This program is similar to round2. It supports both real and complex numbers.

It rounds to the specified digits place and it supports five different styles of rounding the last digit. Also the last digit can be rounded to a multiple of a whole number.

This program supports units and a three digit separator character.

This program also converts the precision rounded array to a cell array of strings.

The program is especially useful for scientific publications, where rounding to a specified digits place is necessary.

引用

Edward Zechmann (2026). Round to Specified Digits Place (https://jp.mathworks.com/matlabcentral/fileexchange/21121-round-to-specified-digits-place), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: round2, ROUND2

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
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