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 (2024). FIX2 (https://www.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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

robust to errors
Description corrected