Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
HEX2FP is a modified version of the Mathworks HEX2NUM.
It converts hexadecimal representations of floating point numbers:
- 8 character IEEE hexadecimal strings are converted to single precision numbers
- 16 character IEEE hexadecimal strings are converted to double precision numbers
It is ALMOST compatible with HEX2num:
- hex2fp('400921fb54442d18') returns pi.
- hex2fp('bff') returns single(-1.875) but hex2num('bff') returns -1.
- hex2fp('40490fdb') returns single(pi)
- hex2fp('bf8') returns single(-1).
- hex2fp('bff ') with more than 5 spaces returns -1.
There are other versions that handle single precision numbers but I needed maximum compatibility with hex2num and automatic switching between singles and doubles.
Citation pour cette source
Olaf Bousche (2026). hex2fp (https://fr.mathworks.com/matlabcentral/fileexchange/157701-hex2fp), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : hexsingle2num, singlehex2num, Float32 Hex to Number Converter
Informations générales
- Version 1.0.0 (2,17 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0 |
