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

# VarDecDiv(3w)

## NAME

**VarDecDiv** (OLEAUT32.178)

## SYNOPSIS

HRESULT VarDecDiv\
  (\
   const DECIMAL\* *pDecLeft*,\
   const DECIMAL\* *pDecRight*,\
   DECIMAL\*       *pDecOut*\
  )

## DESCRIPTION

Divide one **DECIMAL** by another.

## PARAMS

*pDecLeft* **\[In\]**  Source.

*pDecRight* **\[In\]**  Value to divide by.

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

## RETURNS

**Success:** **S\_OK**.

**Failure:** **DISP\_E\_OVERFLOW**, if the value will not fit in the destination

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
