VarR8Round(3w)

VarR8Round3w

Usage

HRESULT VarR8Round
(
double dblIn,
int nDig,
double* pDblOut
)

Overview

Round a VT_R8 to a given number of decimal points.

Params

dblIn [In] Source.

nDig [In] Number of decimal points to round to.

pDblOut [Out] Destination for rounded number.

Returns

Success: S_OK. pDblOut is rounded to nDig digits.

Failure: E_INVALIDARG, if cDecimals is less than 0.

Notes

The native version of this function rounds using the internal binary representation of the number. Wine uses the dutch rounding convention, so therefore small differences can occur in the value returned. MSDN says that you should use your own rounding function if you want rounding to be predictable in your application.

Implementation

Declared in "oleauto.h".

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

Debug channel "variant".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.