w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

VBScript CInt Function


VBScript Reference Complete VBScript Reference

The CInt function converts an expression to type Integer.

Note: The value must be a number between -32768 and 32767.

Syntax

CInt(expression)

Parameter Description
expression Required. Any valid expression

Example

Example

<script type="text/vbscript">

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

</script>

The output of the code above will be:

300
37
-67

Try it yourself »

VBScript Reference Complete VBScript Reference

DreamTemplate

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE