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

# VarDecCmp(3w)

## NAME

**VarDecCmp** (OLEAUT32.204)

## SYNOPSIS

HRESULT VarDecCmp\
  (\
   const DECIMAL\* *pDecLeft*,\
   const DECIMAL\* *pDecRight*\
  )

## DESCRIPTION

Compare two **DECIMAL** values.

## PARAMS

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

*pDecRight* **\[In\]**  Value to compare.

## RETURNS

**Success:** **VARCMP\_LT**, **VARCMP\_EQ** or **VARCMP\_GT** indicating that *pDecLeft* is less than, equal to or greater than *pDecRight* respectively.

**Failure:** **DISP\_E\_OVERFLOW**, if overflow occurs during the comparison

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
