Round with significant digits

Rounds towards the nearest number with N significant digits.

Herunterladen
Herunterladen

Sie verfolgen jetzt diese Einreichung

Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week

Zitieren als

François Beauducel (2026). Round with significant digits (https://de.mathworks.com/matlabcentral/fileexchange/26212-round-with-significant-digits), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: Round to a Specified Number of Significant Digits

Inspiriert: RADIOMICS

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.6.0

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

Herunterladen
1.5.0

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

Herunterladen
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.

Herunterladen
1.2.0

works with negative numbers.

Herunterladen
1.1.0

works with negative numbers.

Herunterladen
1.0.0

Herunterladen