Convert a number in Hex to uint64

A workaround for HEX2DEC for large numbers where rounding error is seen.
586 Downloads
Updated 2 Dec 2009

View License

For large 64 bit numbers HEX2DEC runs into floating point issues. This function uses the uint64 data type to do the conversion so there are no rounding errors.

Cite As

Richard Pfisterer (2024). Convert a number in Hex to uint64 (https://www.mathworks.com/matlabcentral/fileexchange/26005-convert-a-number-in-hex-to-uint64), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Logical in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0