ToDecimal

concerns

The ToDecimal function is a type conversion function. ToDecimal converts the specified expression to a decimal value.

 

Syntax

ToDecimal(Expr)

Return value

Type

Description

Variant

Variant of COM type Decimal

+/- 79.228.162.514.264.337.593.543.950.335 for scaled integers (numbers without decimal places). For numbers with 28 decimal places, the range is +/- 7,922816251426437593543950335. The smallest possible nonzero number is 1E-28

Parameter

Use

Name

Type

Passing

Description

Required

Expr

Variant

ByVal

Expression to be converted to a Decimal value