ASP/VBScript Abs() Returns the absolute value of a number.
ShotDev Focus:
- Using Asp and Abs() function.
Example
asp_abs.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Abs(100)&"<br>" Response.write Abs(200)&"<br>" Response.write Abs(-100)&"<br>" Response.write Abs(-200)&"<br>" Response.write Abs(300)&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_abs.asp
Screenshot
3heather…
…