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

# VarCyFix(3w)

## NAME

**VarCyFix** (OLEAUT32.307)

## SYNOPSIS

HRESULT VarCyFix\
  (\
   const CY *cyIn*,\
   CY\*      *pCyOut*\
  )

## DESCRIPTION

Return the integer part of a **VT\_CY**.

## PARAMS

*cyIn* **\[In\]**  Source.

*pCyOut* **\[Out\]**  Destination.

## RETURNS

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

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

## NOTES

**-** The difference between this function and **[VarCyInt(3w)](/VarCyInt/3w.md)** is that **[VarCyInt(3w)](/VarCyInt/3w.md)** rounds negative numbers away from **0**, while this function rounds them towards zero.

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
