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.

Be the first to post comment on this article :


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

Post Comment This is for short comments only. Use the forum for more discussions.

HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us
©2000-2015 All rights reserved worldwide Privacy Policy Disclaimer