Why does num2hex(1) return '3ff0000000000000' in MATLAB?

 Accepted Answer

Hi Trevor,
Unlike dec2hex, num2hex converts to IEEE 754 hex notation (64 bits) See
https://babbage.cs.qc.cuny.edu/ieee-754.old/decimal.html

More Answers (0)

Categories

Products

Release

R2018b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!