Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Functions
CBool Function
CByte Function
CCur Function
CDate Function
CDbl Function
CInt Function
CSng Function
CStr Function
Int Function
Fix Function
FUNCTION: CLng( )
Implemented in version 1.0
You can determine the expression subtype by using the function
VarType( )
.
CLng
(Number)
The
CLng
function converts any number to the variant of subtype
Long
, with floating-point numbers rounded.
Converts to integers ranging from -2,147,483,648 to 2,147,483,647
Code:
<% anynumber=1234.6 %>
<% =CLng(anynumber) %>
Output:
1235
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information