VarRound(3w)

VarRound3w

Usage

HRESULT VarRound
(
LPVARIANT pVarIn,
int deci,
LPVARIANT pVarOut
)

Overview

Perform a round operation on a variant.

Params

pVarIn [In] Source variant.

deci [In] Number of decimals to round to.

pVarOut [Out] Destination for converted value.

Returns

Success: S_OK. pVarOut contains the converted value.

Failure: An HRESULT error code indicating the error.

Notes

- Floating point values are rounded to the desired number of decimals.

- Some integer types are just copied to the return variable.

- Some other integer types are not handled and fail.

Implementation

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/variant.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.