Reference

VarCyRound(3w)

NAME

VarCyRound (OLEAUT32.310)

SYNOPSIS

HRESULT VarCyRound
(
const CY cyIn,
int cDecimals,
CY* pCyOut
)

DESCRIPTION

Change the precision of a VT_CY.

PARAMS

cyIn [In] Source.

cDecimals [In] New number of decimals to keep.

pCyOut [Out] Destination.

RETURNS

Success: S_OK.

Failure: E_INVALIDARG, if cDecimals is less than 0.

IMPLEMENTATION

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/vartype.c".

Debug channel "variant".

History