CADGetSingleFromBytes

  Functions >

CADGetSingleFromBytes

Previous pageReturn to chapter overviewNext page

The CADGetSingleFromBytes function converts four octets passed as parameters to a single-precision floating-point value.

 

Syntax

 

float CADGetSingleFromBytes(

  unsigned char Byte1

    unsigned char Byte2

    unsigned char Byte3

    unsigned char Byte4

);

 

 

Parameters

 

Byte1

First octet.

Byte2

Second octet.

Byte3

Third octet.

Byte4

Fourth octet.

 

         

Return Value

If the function succeeds, the return value is a single-precision floating point value.

If the function fails, the return value is NULL. To get extended error information, call CADGetLastError.

 

 

See Also

CADGetStructAsString


© 2003-2024 CADSoftTools

Go to CAD DLL