VarDecRound function
Rounds a variant of type decimal to the specified number of decimal places.
Syntax
HRESULT VarDecRound(
_In_ LPDECIMAL pdecIn,
_In_ int cDecimals,
_Out_ LPDECIMAL pdecResult
);
Parameters
- pdecIn [in]
-
The variant to round.
- cDecimals [in]
-
The number of decimal places.
- pdecResult [out]
-
The resulting variant.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: