CInt Function

Converts an expression to an Integer value. The expression argument is any valid expression.

CInt (Expression)

Return Value

Returns an expression that has been converted to a Integer value.

Examples

CInt ("123")

Returns the integer value 123.

CStr (123.45)

Returns the integer value 123.

CStr (-123.45)

Returns the integer value -123.

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

CBool function | CCur function | CDate function | CDec function | CInt function | CStr function | CUInt function| Functions


© 2004-2021 looksoftware. All rights reserved.