FIX2
Version 1.0.0.0 (440 Bytes) by
Mukhtar Ullah
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 (2025). 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 LinuxCategories
Find more on Arithmetic Operations in Help Center and MATLAB Answers
Tags
Acknowledgements
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | robust to errors
|