Mastering floating point rounding mode

This submission offers to the user the possibility to set and/or get floating point rounding mode.
1 Download
Aktualisiert 25. Nov 2023

Lizenz anzeigen

There is officially no matlab function to set and/or get floating point rounding mode.
Our SGRound.c function represents a long term approach to answer to the question of mastering floating point rounding mode.
However a SGRound.m file version is given for an historic reason via an undocument function used by matlab istself.
A small test function is included to check numerically that the current selected rounding mode works as expected.

Zitieren als

Alain Barraud (2025). Mastering floating point rounding mode (https://de.mathworks.com/matlabcentral/fileexchange/155602-mastering-floating-point-rounding-mode), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2023b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0