ASP/VBScript CSng() Returns an expression that has been converted to a Variant of subtype Single.
ShotDev Focus:
- Using Asp and CSng() function.
Example
asp_csng.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write CSng("1234.4321")&"<br>"
Response.write CSng("5678.8765")&"<br>"
Response.write CSng("0912.2109")&"<br>"
Response.write CSng("3456.6543")&"<br>"
Response.write CSng("7890.0987")&"<br>"
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_csng.asp
Screenshot


