VBA CDec Function: The CDec function in VBA converts an expression into a Decimal data type.

Syntax

Parameter

Expression (required) – This parameter represents the expression that you want to convert to a Decimal.

Return

This function returns a decimal figure after converting the specified expression into a decimal data type.

Example 1

Output

59001.09088

Excel VBA CDec Function

Example 2

Output

0.218390805

Excel VBA CDec Function

Example 3

Output

Excel VBA CDec Function

Pin It on Pinterest

Share This