VarRound Function

Rounds a variant to the specified number of decimal places.

HRESULT VarRoung(  
  LPVARIANT  pvarIn,         
  INT        cDecimals,  
  LPVARIANT  pvarResult
);

pvarIn

[in] Points to the variant to be rounded.

cDecimals

[in] The number of decimal places.

pvarResult

[out] Points to the result variant.

Show:
© 2014 Microsoft