You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Returns the order of magnitude of one or more numbers. Works on arrays. You can also specify the number base.
%Ex:
order( 1.2e-5 ) %returns -5
order(1) = 0
order( 1.12344e8 ) %returns 8
%Specify base 2:
order(1.2*2^5,2) %returns 5
Cite As
Ivar Eskerud Smith (2026). Order of magnitude of number (https://www.mathworks.com/matlabcentral/fileexchange/28559-order-of-magnitude-of-number), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (1.24 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
