VarCyRound function (oleauto.h)
Rounds a variant of type currency to the specified number of decimal places.
Syntax
HRESULT VarCyRound(
[in] CY cyIn,
[in] int cDecimals,
[out] LPCY pcyResult
);
Parameters
[in] cyIn
The variant to round.
[in] cDecimals
The number of currency decimals.
[out] pcyResult
The resulting variant.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |