MATLAB: Does num2hex(1) return ‘3ff0000000000000’ in MATLAB

MATLABnum2hex

Try it.

Best 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