web 2.0

APS/VBScript Fix()

ASP/VBScript Fix() Returns the integer portion of a number.

ShotDev Focus:
- Using Asp and Fix() function.

Example

asp_fix.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write Fix(30.7890546)&"<br>"
Response.write Fix(25.567890)&"<br>"
Response.write Fix(32.987654)&"<br>"
Response.write Fix(33.123456)&"<br>"
Response.write Fix(29.345678)&"<br>"
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_log.asp

Screenshot

ASP/VBScript & Fix()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.