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

# VarUI4FromR8(3w)

## NAME

**VarUI4FromR8** (OLEAUT32.274)

## SYNOPSIS

HRESULT VarUI4FromR8\
  (\
   double *dblIn*,\
   ULONG\* *pulOut*\
  )

## DESCRIPTION

Convert a **VT\_R8** to a **VT\_UI4**.

## PARAMS

*dblIn* **\[In\]**  Source.

*pulOut* **\[Out\]**  Destination.

## RETURNS

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

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

## NOTES

See **[VarI8FromR8(3w)](/VarI8FromR8/3w.md)** for details concerning rounding.

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
