---
name: "VarRound"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VarRound"
---

# VarRound(3w)

## NAME

**VarRound** (OLEAUT32.175)

## SYNOPSIS

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

## DESCRIPTION

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"**.
