Integer computation extended beyond 32-bit

compute integer arithmatic beyond 32-bit, Matlab's limit
1.3K Downloads
Updated 8 May 2008

No License

% extending integer precision beyond 32-bit. Maximum integer value in
% Matlab is 'intmax = 2147483647'. This is a 'int' type in C. So if using
% 'intmax', double() must be used to convert it to double type in order to
% perform further computation. Others are by default double so no need of
% conversion.
% Reference: C Interfaces and Implmentations, David Hanson.

Cite As

Steven Huang (2024). Integer computation extended beyond 32-bit (https://www.mathworks.com/matlabcentral/fileexchange/19848-integer-computation-extended-beyond-32-bit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Numeric Types 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