VarDecCmpR8 function (oleauto.h)

Compares a variant of type decimal with the a value of type double.

Syntax

HRESULT VarDecCmpR8(
  [in] LPDECIMAL pdecLeft,
  [in] double    dblRight
);

Parameters

[in] pdecLeft

The first variant.

[in] dblRight

The second variant.

Return value

This function can return one of these values.

Return code/value Description
VARCMP_LT
0
pdecLeft is less than dblRight.
VARCMP_EQ
1
The two parameters are equal.
VARCMP_GT
2
pdecLeft is greater than dblRight.
VARCMP_NULL
3
Either expression is null.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll