VBScript CInt Function

The CInt function converts an expression to type Integer."

Example

Example

<%

response.write(CInt("300") & "<br />")
response.write(CInt(36.75) & "<br />")
response.write(CInt(-67) & "<br />")

%>

The output of the code above will be:

300
37
-67

❮ Complete VBScript Reference