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

# VarI8FromCy(3w)

## NAME

**VarI8FromCy** (OLEAUT32.337)

## SYNOPSIS

HRESULT VarI8FromCy\
  (\
   CY      *cyIn*,\
   LONG64\* *pi64Out*\
  )

## DESCRIPTION

Convert a **VT\_CY** to a **VT\_I8**.

## PARAMS

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

*pi64Out* **\[Out\]**  Destination.

## RETURNS

**S\_OK**.

## NOTES

All negative numbers are rounded down by **1**, including those that are evenly divisible by **10000** (this is a Win32 bug that Wine mimics). Positive numbers are rounded using Dutch rounding: See **[VarI8FromR8(3w)](/VarI8FromR8/3w.md)** for details.

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
