VarR8Round 函数 (oleauto.h)

将 double 类型的变体舍入到指定的小数位数。

语法

HRESULT VarR8Round(
  [in]  double dblIn,
  [in]  int    cDecimals,
  [out] double *pdblResult
);

参数

[in] dblIn

变体。

[in] cDecimals

小数位数。

[out] pdblResult

结果。

返回值

如果此函数成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

要求

要求
目标平台 Windows
标头 oleauto.h
Library OleAut32.lib
DLL OleAut32.dll