The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



HexToDouble


Unit:SDL_math1
Class:None
Declaration: [1] function HexToDouble (instr: string): double;
[2] function HexToDouble (instr: string; bigendian: boolean): double;

The function HexToDouble converts the hexadecimal string instr into a double precision floating point number. The string instr has to represent the IEEE format of a double precision number. Version [2] of the function allows to specify the endianess of the input string by setting the parameter bigendian accordingly.

Version[1] is equal to calling version [2] with bigendian = TRUE.



Last Update: 2023-Feb-06