ASP/VBScript Round() Returns a number rounded to a specified number of decimal places.
ShotDev Focus:
- Using Asp and Round() function.
Example
asp_round.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Round(12.76543)&"<br>" Response.write Round(12.76543,4)&"<br>" Response.write Round(12.76543,3)&"<br>" Response.write Round(12.76543,2)&"<br>" Response.write Round(12.76543,1)&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_abs.asp
Screenshot