ROUND2

Version 1.0.0.0 (758 Bytes) von Mukhtar Ullah
Round to a specified number of decimals.
5,6K Downloads
Aktualisiert 14. Apr 2005

Keine Lizenz

ROUND2 Round to a specified number of decimals.

ROUND2(A) returns the same as ROUND(A).
ROUND2(A, 'even') returns the same as ROUND(A). Elements with
fractional part equal to 0.5 are rounded to even integers.
ROUND2(A, N) rounds the elements of A to decimals specified in N.
ROUND2(A, N,'even') rounds the elements of A to decimals specified
in N. Elements with 5 as the (N+1)-th digit after decimal are rounded
to even numbers.

See also: ROUND, FIX, FLOOR, CEIL, FIX2.

Zitieren als

Mukhtar Ullah (2024). ROUND2 (https://www.mathworks.com/matlabcentral/fileexchange/6077-round2), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R14
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Logical finden Sie in Help Center und MATLAB Answers

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

improvement and corrected description