Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
[in] pdecIn
The variant to round.
[in] cDecimals
The number of decimal places.
[out] pdecResult
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 |