Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio | Private | Search

 

Function: Convert a Hexadecimal String into a Number
Function
A function which will convert the passed in string from hexadecimal and return its equivalent value as a decimal number.
Version
version:20130623, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
Non-hexadecimal characters in the passed in string result in an alert and the function returns zero.
System Requirements
Tested on GMS 2.x but should be compatible with all versions of GMS.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code
See the attached script