ssFxpConvertToRealWorldValue
Convert value of any data type to
double
Syntax
extern double ssFxpConvertToRealWorldValue (SimStruct *S,
const void *pVoidSrc,
size_t sizeofSrc,
DTypeId dataTypeIdSrc)
Arguments
SSimStruct representing an S-function block.
pVoidSrcPointer to the value you want to convert.
sizeofSrcSize in memory of the value you want to convert.
dataTypeIdSrcData type ID of the value you want to convert.
Description
This function converts a value of any registered built-in or fixed-point data
type to a double.
Requirement
To use this function, you must include fixedpoint.h and
fixedpoint.c. For more information, see Structure of the S-Function.
Languages
C
TLC Functions
None
Version History
Introduced before R2006a