Round with significant digits

Rounds towards the nearest number with N significant digits.

ダウンロード
ダウンロード

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

編集メモ: This file was selected as MATLAB Central Pick of the Week

引用

François Beauducel (2026). Round with significant digits (https://jp.mathworks.com/matlabcentral/fileexchange/26212-round-with-significant-digits), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Round to a Specified Number of Significant Digits

ヒントを与えたファイル: RADIOMICS

一般的な情報

MATLAB リリースの互換性

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

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

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.6.0

fix a problem with vectors with negative and positive exponent values (problem since the last update only).

ダウンロード
1.5.0

solve the floating point arithmetic problem with roundsd(3.55,2) pointed out by Will and Yuri K.

ダウンロード
1.3.0

- adds different methods for rounding;
- corrects a bug for 0 values (now produces 0 instead of NaN), thanks to Daniel Armyr's comment.

ダウンロード
1.2.0

works with negative numbers.

ダウンロード
1.1.0

works with negative numbers.

ダウンロード
1.0.0

ダウンロード