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

# VarIdiv(3w)

## NAME

**VarIdiv** (OLEAUT32.153)

## SYNOPSIS

HRESULT VarIdiv\
  (\
   LPVARIANT *left*,\
   LPVARIANT *right*,\
   LPVARIANT *result*\
  )

## DESCRIPTION

Converts input variants to integers and divides them.

## PARAMS

*left* **\[In\]**  Left hand variant.

*right* **\[In\]**  Right hand variant.

*result* **\[Out\]**  Destination for quotient.

## RETURNS

**Success:** **S\_OK**. *result* contains the quotient.

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

If either expression is **NULL**, **NULL** is returned, as per **MSDN**

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
