SQL PHP HTML ASP JavaScript articles and free scripts to download
 

ASP round function to format decimal place in ASP

Round function is used to round of a number and format the number as per requirment.

Round(5.768) will return 6
Round(5.368) will return 5
Round(0.768) will return 1
Round(-3.368) will return -3


We can format a number as per requirement of decimal place. For example we want the number should display two decimal places only.
Round(5.768,2) will return 5.77

The above line is rounded off to two decimal place.
Further readings
Round function to format decimal place in a number
Math functions INT
Random Number generator using Random function
Percentage value by using FormatPerecnt function
 
Scripts
PHP
JavaScript
All ASP Tutorials
Popular Tutorials
Managing two drop downs
ASP Tutorials
Date and time
Declaring array
Form in ASP
Server.MapPath
Date Time & MSSQL
Select Query
File System Object
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.