Integer computation extended beyond 32-bit

compute integer arithmatic beyond 32-bit, Matlab's limit

You are now following this Submission

% 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 (2026). Integer computation extended beyond 32-bit (https://in.mathworks.com/matlabcentral/fileexchange/19848-integer-computation-extended-beyond-32-bit), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0