int2strn

convert integer to string, using either integer or exponential format

You are now following this Submission

int2strn(n,k,p) converts the number n to a string, expressing n in integer format if it can be written using k digits or less, and otherwise in exponential format with precision p. The default values of k and p are 6 and 3, respectively. When numbers are written in exponential format, extraneous leading zeros in the exponent are suppressed.

Cite As

Phillip M. Feldman (2026). int2strn (https://www.mathworks.com/matlabcentral/fileexchange/18538-int2strn), 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