IEEE 754 binary representation
版本 1.1.0.0 (1.7 KB) 作者:
Toby Driscoll
Converts a double into its underlying 64-bit representation, including sign, exponent, and mantissa.
[S,E,F] = IEEE754(X) returns the sign bit, exponent, and mantissa of an IEEE 754 floating point value X, expressed as binary digit strings of length 1, 11, and 52, respectively.
X is equal to (in exact arithmetic and decimal notation)
(-1)^S * (1 + F/(2^52)) * 2^(E-1023),
except for special values 0, Inf, NaN, and denormalized numbers (between 0 and REALMIN).
引用格式
Toby Driscoll (2024). IEEE 754 binary representation (https://www.mathworks.com/matlabcentral/fileexchange/25326-ieee-754-binary-representation), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2009a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Numbers and Precision 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!