Help Center

DVARIANT.Roundmethod

Rounds a variant to the specified number of decimal places.

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION Round (BYREF dv AS DVARIANT, BYVAL cDecimals AS LONG) AS DVARIANT

Parameters

NameDescription
dvThe DVARIANT to round.
cDecimalsThe number of decimal places.

Return value

A DVARIANT containing the rounded result.

Description

Rounds a variant to the specified number of decimal places.

Reference

  • Include file DVARIANT.INC
  • Defined in AfxNova/DVARIANT.inc:2333
  • Documented in COM/DVARIANT Class.md
  • Topic: DVARIANT Class