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

# VarDecRound(3w)

## NAME

**VarDecRound** (OLEAUT32.203)

## SYNOPSIS

HRESULT VarDecRound\
  (\
   const DECIMAL\* *pDecIn*,\
   int            *cDecimals*,\
   DECIMAL\*       *pDecOut*\
  )

## DESCRIPTION

Change the precision of a **DECIMAL**.

## PARAMS

*pDecIn* **\[In\]**  Source.

*cDecimals* **\[In\]**  New number of decimals to keep.

*pDecOut* **\[Out\]**  Destination.

## RETURNS

**Success:** **S\_OK**. *pDecOut* contains the rounded value.

**Failure:** **E\_INVALIDARG** if any argument is invalid.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

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

Debug channel **"variant"**.
