You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Matlab builtin functions bin2dec and dec2bin are not sufficient for float to binary and binary to float conversions. float2bin(in) function takes a floating point number as an input and returns a binary representation. bin2float(bin) function takes a binary representation as an input and returns a floating point number.
Example usage:
>> out = float2bin(6.875)
out =
110.111
>> out = bin2float('110.111')
out =
6.8750
Cite As
Dogac Basaran (2026). Binary-Float convertor (https://in.mathworks.com/matlabcentral/fileexchange/56893-binary-float-convertor), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (862 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
