Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

Round a number

Description:


How to round a number using ASP and VB Script.

Code:

<html> <body> <%
x = 7.4356
y = 7.5000
z = 7.6182
Response.Write(Round(x))
Response.Write("<br />")
Response.Write(Round(y))
Response.Write("<br />")
Response.Write(Round(z))
%> </body> </html>

See working example:


Keywords:

ASP: Response.Write

VBScript: Round


     Advertising | Online Advertising | Internet Advertising | Online Advertising | Internet Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos