ASP/VBScript Int() Returns the integer portion of a number.
ShotDev Focus:
- Using Asp and Int() function.
Example
asp_int.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Int(123.4567)&"<br>" Response.write Int(123.667)&"<br>" Response.write Int(-123.667)&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_atn.asp
Screenshot