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....



HexToSingle


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

The function HexToSingle converts the hexadecimal string instr into a single precision floating point number. The string instr has to represent the IEEE format of a single 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