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

# VarCyCmpR8(3w)

## NAME

**VarCyCmpR8** (OLEAUT32.312)

## SYNOPSIS

HRESULT VarCyCmpR8\
  (\
   const CY *cyLeft*,\
   double   *dblRight*\
  )

## DESCRIPTION

Compare a **VT\_CY** to a double.

## PARAMS

*cyLeft* **\[In\]**  Currency Source.

*dblRight* **\[In\]**  double to compare to *cyLeft*.

## RETURNS

**Success:** **VARCMP\_LT**, **VARCMP\_EQ** or **VARCMP\_GT** indicating that *dblRight* is less than, equal to or greater than *cyLeft* 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"**.
