From Double To String

A conversion from a float to a binary string representation is provided.

You are now following this Submission

Two functions, num2bin and bin2num are provided. num2bin takes a double and converts it to a binary string representation. bin2num is its inverse operation. It can be used in a numerical analysis course when floating point arithmetic is discussed.

Cite As

Herman Gollwitzer (2026). From Double To String (https://www.mathworks.com/matlabcentral/fileexchange/1777-from-double-to-string), 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