CInt Function

Syntax:

CInt(expr)

 

Group:

Conversion

 

Description:

 

Convert to a 16 bit integer. If the expr is too big (or too small) to fit then an overflow error occurs.

 

Parameter

Description

expr

Convert a number or string value to an integer.

 

Example:


Sub Main
  Debug.Print CInt(1.6) ' 2
End
Sub