Share via


TempNum/TempNum12

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Framework library function that creates a temporary XLOPER/XLOPER12 containing a Microsoft Office Excel worksheet number (an IEEE 8-byte double).

LPXLOPER TempNum(double d);
LPXLOPER12 TempNum12(double d);

Parameters

d (double)

The intended value. Note that IEEE sub-normal numbers are not currently supported and are rounded to zero. Negative infinity is supported.

Return Value

Returns a numeric xltypeNum containing the value passed in or zero if the passed in value was sub-normal.

Example

This example uses the TempNum12 function to pass an argument to xlfGetWorkspace.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempNumExample(void)
{
   XLOPER12 xRes;

   Excel12f(xlfGetWorkspace, &xRes, 1, TempNum12(44));
   Excel12f(xlFree, 0, 1, (LPXLOPER12)&xRes);
   return 1;
}

See Also

Concepts

Functions in the Framework Library