signdigits(N)

This function creates a vector that contains the significant digits of scalar N

You are now following this Submission

The function asks for the scalar N to create a vector containing the significant digits of N. It also tells the user whether the scalar is negative (s=-1) and has decimals (l is the location of the end of the integer number). The length of a is the number of significant digits of scalar N.

Cite As

Andrea Codolini (2026). signdigits(N) (https://www.mathworks.com/matlabcentral/fileexchange/65890-signdigits-n), 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.1.1.0

Included Copyright statement

1.1.0.0

Changed variable name to reduce confusion.

1.0.0.0