FIX2

Round to a specified number of decimals towards zero.
2.5K Downloads
Updated 21 Oct 2004

No License

% FIX2(A) returns the same as FIX(A).
% Y = FIX2(A, N) fixes the elements of A to decimals specified in N.
%
% See also: FIX, FLOOR, CEIL, ROUND, ROUND2.

Cite As

Mukhtar Ullah (2026). FIX2 (https://uk.mathworks.com/matlabcentral/fileexchange/6076-fix2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Arithmetic Operations in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

robust to errors
Description corrected