VBA CInt Function: The VBA Cint function converts the specified expression into an Integer.

Syntax

Parameter

Expression (required) – This parameter represents the expression that you want to convert to an Integer wherein the supplied expression must be between -32,768 and 32,767.

Return

This function returns an integer value ranging between -32,768 and 32,767 after converting the given expression to the integer data type.

Example 1

Output

70

VBA CInt Function

Example 2

Output

355

VBA CInt Function

Example 3

Output

VBA CInt Function

Pin It on Pinterest

Share This