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
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.368) will return 5
Round(0.768) will return 1
Round(-3.368) will return -3
Round(5.768,2) will return 5.77
The above line is rounded off to two decimal place.
This article is written by plus2net.com team.
Be the first to post comment on this article :